sleep doesn't update the time returned by time(1)
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3102
Reported by Martin Stjernholm mast@roxen.com
Pike v7.3 release 45 running Hilfe v3.4 (Incremental Pike Frontend)
> time(); sleep(1); time(1);
(1) Result: 1022164492
(2) Result: object
(3) Result: 1022164492
> time(); sleep(1); time();
(4) Result: 1022164499
(5) Result: object
(6) Result: 1022164500
Although time(1) doesn't give any guarantee to get an accurate time, I think it's reasonable that sleep() updates the time it uses.