📄 timer.cpp
字号:
/*
Robot Interface Remote Client
(C) 2006 Jason Hunt
nulluser@gmail.com
File: timer.h
*/
#include <windows.h>
/* Returns system time in seconds */
double get_time( void )
{
static LARGE_INTEGER freq;
bool init = 0;
if (!init)
{
QueryPerformanceFrequency(&freq);
init = 1;
}
LARGE_INTEGER c;
QueryPerformanceCounter(&c);
return(c.QuadPart / (double)freq.QuadPart);
}
/* End of get_time() */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -