src/hugo/time_measure.h
changeset 745 d976ba609099
parent 539 fb261e3a9a0f
child 814 d2d747fe1db3
equal deleted inserted replaced
0:a38944fbfe88 1:39f5b93e6362
   125   ///Class measuring the cpu time and real time usage of the process
   125   ///Class measuring the cpu time and real time usage of the process
   126 
   126 
   127   ///Class measuring the cpu time and real time usage of the process.
   127   ///Class measuring the cpu time and real time usage of the process.
   128   ///It is quite easy-to-use, here is a short example.
   128   ///It is quite easy-to-use, here is a short example.
   129   ///\code
   129   ///\code
       
   130   ///#include<hugo/time_measure.h>
       
   131   ///#include<iostream>
       
   132 
   130   ///int main()
   133   ///int main()
   131   ///{
   134   ///{
   132   ///
   135   ///
   133   ///  ...
   136   ///  ...
   134   ///
   137   ///
   135   ///  Timer T();
   138   ///  Timer T;
   136   ///  doSomething();
   139   ///  doSomething();
   137   ///  cout << T;
   140   ///  std::cout << T << '\n';
   138   ///  T.reset();
   141   ///  T.reset();
   139   ///  doSomethingElse();
   142   ///  doSomethingElse();
   140   ///  cout << T;
   143   ///  std::cout << T << '\n';
   141   ///
   144   ///
   142   ///  ...
   145   ///  ...
   143   ///
   146   ///
   144   ///}
   147   ///}
   145   ///\endcode
   148   ///\endcode