REVIEWED: WaitTime()
, added validation #3377
This commit is contained in:
parent
a0b30b0363
commit
5ed7717f0d
1 changed files with 2 additions and 0 deletions
|
@ -2290,6 +2290,8 @@ void InitTimer(void)
|
||||||
// Ref: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!
|
// Ref: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!
|
||||||
void WaitTime(double seconds)
|
void WaitTime(double seconds)
|
||||||
{
|
{
|
||||||
|
if (seconds < 0) return;
|
||||||
|
|
||||||
#if defined(SUPPORT_BUSY_WAIT_LOOP) || defined(SUPPORT_PARTIALBUSY_WAIT_LOOP)
|
#if defined(SUPPORT_BUSY_WAIT_LOOP) || defined(SUPPORT_PARTIALBUSY_WAIT_LOOP)
|
||||||
double destinationTime = GetTime() + seconds;
|
double destinationTime = GetTime() + seconds;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue