📄 time.h
字号:
#ifndef __DOLPHIN__TIME_H
#define __DOLPHIN__TIME_H
#include <iostream>
class TimeKeeper
{
char *s;
double start_time;
public:
static double get_time();
double get_absolute_time()
{
return get_time();
}
double get_relative_time()
{
return get_time()-start_time;
}
TimeKeeper(char *id_string=NULL)
{
if(id_string)
s=id_string;
else
s="";
// std::cout << "TimeKeeper(" << s << "): here.\n";
start_time=get_time();
}
~TimeKeeper();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -