📄 timer.h
字号:
//// spectral toolkit // copyright (c) 2005 university corporation for atmospheric research// licensed under the gnu general public license//#ifndef __timer__#define __timer__namespace spectral{ /// Microsecond timer object. Provides a microsecond resolution stopwatch. class timer { public: /// Constructor for timer. timer(); /// Desctructor for timer. ~timer(); /// Start stopwatch method. void start(); /// Stop stopwatch method. void stop(); /// Report time method. /// \return accumulated time in microseconds double time(); /// Reset stopwatch method. void clear(); private: double T; double Total; double clock(); };}#endif// Local Variables:// mode:C++// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -