note 71839 added to function.time-nanosleep

From: Date: Mon, 18 Dec 2006 23:27:02 +0000
Subject: note 71839 added to function.time-nanosleep
Groups: php.notes 
Request: Send a blank email to php-notes+get-120759@lists.php.net to get a copy of this message
Just glancing at this - and the note from over a year ago with a implementation for windows.. with 5.0.0 and higher it would be simplier to just do something like...... <? if (!function_exists('time_nanosleep')) { function time_nanosleep($seconds, $nanoseconds) { sleep($seconds); usleep(round($nanoseconds/100)); return true; } } ?> ....off the top of my head - obviously simple enough there should be no mistakes.. but those are the ones that always seem to get ya :( ..... ---- Server IP: 216.194.113.175 Probable Submitter: 24.234.128.6 ---- Manual Page -- http://www.php.net/manual/en/function.time-nanosleep.php Edit -- https://master.php.net/note/edit/71839 Del: integrated -- https://master.php.net/note/delete/71839/integrated Del: useless -- https://master.php.net/note/delete/71839/useless Del: bad code -- https://master.php.net/note/delete/71839/bad+code Del: spam -- https://master.php.net/note/delete/71839/spam Del: non-english -- https://master.php.net/note/delete/71839/non-english Del: in docs -- https://master.php.net/note/delete/71839/in+docs Del: other reasons-- https://master.php.net/note/delete/71839 Reject -- https://master.php.net/note/reject/71839 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120759) next »