[Teleus-cvs] teleus/src/util timer.cpp,1.4,1.5
Status: Inactive
Brought to you by:
spiffgq
|
From: Daniel R. <sp...@us...> - 2004-05-25 23:13:49
|
Update of /cvsroot/teleus/teleus/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18409/src/util Modified Files: timer.cpp Log Message: Now allowed to 'sleep' for negative time (just return w/o sleeping). Index: timer.cpp =================================================================== RCS file: /cvsroot/teleus/teleus/src/util/timer.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** timer.cpp 25 Feb 2004 06:34:00 -0000 1.4 --- timer.cpp 25 May 2004 23:13:41 -0000 1.5 *************** *** 217,225 **** void Timer::sleep (double seconds){ ! assert (seconds > 0.0, ! "Trying to sleep for a negative time period."); #ifdef __linux__ int result; double intpart, fracpart; --- 217,227 ---- void Timer::sleep (double seconds){ ! /*assert (seconds > 0.0, ! "Trying to sleep for a negative time period.");*/ #ifdef __linux__ + if (seconds < 0.0){ return; } + int result; double intpart, fracpart; |