|
Jpp
|
Auxiliary class for CPU timing and usage. More...
#include <JTimer.hh>
Public Types | |
| enum | JStatus_t { CLK_STOPPED = 0, CLK_RUNNING = 1 } |
| Status of clock. More... | |
| typedef unsigned long long | ull |
Public Member Functions | |
| JTimer () | |
| Default constructor. More... | |
| JTimer (const JTitle &title) | |
| Constructor. More... | |
| void | reset () |
| Reset timer. More... | |
| void | start () |
| Start timer. More... | |
| void | stop () |
| Stop timer. More... | |
| unsigned int | timing_get_cpu_percentage () const |
| Get CPU usage. More... | |
| void | print (std::ostream &out, const JScale_t scale=milli_t) const |
| Print timer data. More... | |
| void | print (std::ostream &out, const bool normalise, const JScale_t scale=milli_t) const |
| Print timer data. More... | |
| void | print (std::ostream &out, const double factor, const JScale_t scale=milli_t) const |
| Print timer data. More... | |
| const std::string & | getTitle () const |
| Get title. More... | |
| void | setTitle (const std::string &title) |
| Set title. More... | |
Static Public Member Functions | |
| static unsigned long long | timeval_to_usec (const struct timeval &tv) |
| Convert timeval to micro-seconds. More... | |
Public Attributes | |
| unsigned long long | usec_wall |
| unsigned long long | usec_ucpu |
| unsigned long long | usec_scpu |
| unsigned long long | counter |
Protected Attributes | |
| JStatus_t | status |
| std::string | title |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const JTimer &timer) |
| Print timer data. More... | |
| typedef unsigned long long JEEP::JTimer::ull |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
friend |
1.8.16