# PetscDrawSetPause
Sets the amount of time that program pauses after a `PetscDrawPause()` is called. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawSetPause(PetscDraw draw, PetscReal lpause)
```
Logically Collective on draw


## Input Parameters

- ***draw   -*** the drawing object
- ***lpause -*** number of seconds to pause, -1 implies until user input, -2 pauses only on the `PetscDrawDestroy()`



## Options Database Key

- ***-draw_pause value -*** set the time to pause





## Note
By default the pause time is zero unless the -draw_pause option is given
during PetscDrawCreate().


## See Also
 `PetscDraw`, `PetscDrawGetPause()`, `PetscDrawPause()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/dpause.c.html#PetscDrawSetPause">src/sys/classes/draw/interface/dpause.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex68.c.html">src/ksp/ksp/tutorials/ex68.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/dpause.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
