os.cpp

来自「编译并且测试成功的虚拟机」· C++ 代码 · 共 23 行

CPP
23
字号
#include "stdafx.h"#include "os.h"#include <unistd.h>//#include <sys/time.h>unsigned long startTime;bool startTimed = false;// Get a time measure msec. unsigned long GetTimeMsec() {	/*  timeval t = getTime();  return t.tv_sec * 1000 + t.tv_usec / 1000;  */	return 100;}// Get time in seconds (using hi res timer)float GetTimeSec() {    return 0.1;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?