:orphan:
# PetscSleep
Sleeps some number of seconds.
## Synopsis
```
#include "petscsys.h"
PetscErrorCode PetscSleep(PetscReal s)
```
Not Collective
## Input Parameter
- ***s -*** number of seconds to sleep
## Note
If s is negative waits for keyboard input
## Level
intermediate
## Location
src/sys/utils/psleep.c
## Examples
src/ksp/ksp/tutorials/ex100.c
src/ksp/ksp/tutorials/ex100f.F90
src/sys/tutorials/ex3.c
src/sys/tutorials/ex3f.F90
src/sys/tutorials/ex3f90.F90
src/sys/tutorials/ex4f.F90
src/vec/vec/tutorials/ex15.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/psleep.c)
[Index of all Sys routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)