ctest_sleep
-----------

sleeps for some amount of time

::

  ctest_sleep(<seconds>)

Sleep for given number of seconds.

::

  ctest_sleep(<time1> <duration> <time2>)

Sleep for t=(time1 + duration - time2) seconds if t > 0.
