| 
    Jpp
    master_rocky-37-gf0c5bc59d
    
   the software that should make you happy 
   | 
 
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 void | enable () | 
| Enable timers.  More... | |
| static void | disable () | 
| Disable timers.  More... | |
| 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 | 
Static Private Member Functions | |
| static bool & | get_status () | 
| Get status.  More... | |
Private Attributes | |
| struct timeval | tv | 
| struct rusage | usage | 
Friends | |
| std::ostream & | operator<< (std::ostream &out, const JTimer &timer) | 
| Print timer data.  More... | |
| typedef unsigned long long JEEP::JTimer::ull | 
      
  | 
  inline | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inline | 
      
  | 
  inline | 
Start timer.
Definition at line 106 of file JTimer.hh.
      
  | 
  inline | 
      
  | 
  inlinestatic | 
Print timer data.
| out | output stream | 
| scale | scale | 
Definition at line 172 of file JTimer.hh.
      
  | 
  inline | 
Print timer data.
| out | output stream | 
| factor | multiplication factor | 
| scale | scale | 
Definition at line 204 of file JTimer.hh.
      
  | 
  inlinestaticprivate | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  friend |