瀏覽代碼

ps3: fix a bug in the timer code.

legacy
Sam Hocevar sam 13 年之前
父節點
當前提交
328af22a5f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/timer.cpp

+ 1
- 1
src/timer.cpp 查看文件

@@ -86,7 +86,7 @@ private:
#elif defined __CELLOS_LV2__
uint64_t cycles;
SYS_TIMEBASE_GET(cycles);
ret = ms_per_cycle * cycles;
ret = ms_per_cycle * (cycles - cycles0);
if (update)
cycles0 = cycles;
towait = deltams - ret;


Loading…
取消
儲存