📄 timers.cpp
字号:
/************************************************** Timestamp Functions Source File ** (C) 1999-2002 The Botan Project **************************************************/#include <botan/timers.h>#include <ctime>namespace Botan {namespace {Timer* global_timer = 0;}/************************************************** Timer Access Functions **************************************************/u64bit system_time() { return std::time(0); }u64bit system_clock() { if(!global_timer) return std::clock(); return global_timer->clock(); }/************************************************** Set the Timer type **************************************************/void set_timer_type(Timer* timer) { delete global_timer; global_timer = timer; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -