浏览代码

REVIEWED: `WaitTime()`, added validation #3377

pull/3392/head
Ray 1年前
父节点
当前提交
5ed7717f0d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/rcore.c

+ 2
- 0
src/rcore.c 查看文件

@ -2290,6 +2290,8 @@ void InitTimer(void)
// Ref: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!
void WaitTime(double seconds)
{
if (seconds < 0) return;
#if defined(SUPPORT_BUSY_WAIT_LOOP) || defined(SUPPORT_PARTIALBUSY_WAIT_LOOP)
double destinationTime = GetTime() + seconds;
#endif

正在加载...
取消
保存