timer.h

来自「The Spectral Toolkit is a C++ spectral t」· C头文件 代码 · 共 41 行

H
41
字号
//// 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 + =
减小字号Ctrl + -
显示快捷键?