Subsecond sleep

Matthew Knepley knepley at
Fri Oct 16 05:30:50 CDT 2009



On Fri, Oct 16, 2009 at 5:02 AM, Jed Brown <jed at> wrote:

> I sometimes want to slow down animation with a small problem size and
> -draw_pause is generally does what I want, but it can only take integer
> arguments and pausing for a whole second every time is often too much.
> There are subsecond sleep functions (like usleep and nanosleep) in
> POSIX, and I've rolled my own micro-sleep command-line option more than
> once now.  Is there a compelling reason not to make -draw_pause and
> PetscSleep take a real value, thus offering higher resolution when it is
> available?
> Jed

What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-dev mailing list