📄 stimemac.c
字号:
/* stimemac.c -- portable timer implementation for macOS */#include <Events.h>#include "stime.h"long gSTimeStartTime = TickCount();int gSTimeResolution = 1000;void stime_start(int resolution){ gSTimeStartTime = TickCount(); gSTimeResolution = resolution;}unsigned long stime_get(){ long elapsed = (TickCount() - gSTimeStartTime); double e2 = (elapsed / 60.0) * gSTimeResolution; return (unsigned long)(e2 + 0.5);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -