Skip to main content
Ctrl+K
PETSc 3.23.1 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscSleep

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

See Also#

PetscTime()

Level#

intermediate

Location#

src/sys/utils/psleep.c

Examples#

src/sys/tutorials/ex3f90.F90
src/ksp/ksp/tutorials/ex100.c
src/vec/vec/tutorials/ex15.c
src/sys/tutorials/ex3.c
src/sys/tutorials/ex4f.F90
src/sys/tutorials/ex3f.F90
src/ksp/ksp/tutorials/ex100f.F90


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

On this page
  • Synopsis
  • Input Parameter
  • Note
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-04-30T13:10:40-0500 (v3.23.1).