#include <cpu_timer.h>
Public Member Functions | |
| cpu_timer ()=default | |
| cpu_timer (cpu_timer &&)=default | |
| cpu_timer & | operator= (cpu_timer &&)=default |
| cpu_timer (cpu_timer const &)=delete | |
| cpu_timer & | operator= (cpu_timer const &)=delete |
| bool | is_running () const |
| bool | is_stopped () const |
| double | elapsed_real_time () const |
| double | elapsed_cpu_time () const |
| double | accumulated_real_time () const |
| double | accumulated_cpu_time () const |
| double | realTime () const |
| double | cpuTime () const |
| void | start () |
| void | stop () |
| void | reset () |
Private Attributes | |
| bool | is_running_ {false} |
| timeval | start_real_time_ {0, 0} |
| timeval | start_cpu_time_ {0, 0} |
| double | accumulated_real_time_ {} |
| double | accumulated_cpu_time_ {} |
Definition at line 18 of file cpu_timer.h.
|
default |
|
default |
|
delete |
| double cpu_timer::accumulated_cpu_time | ( | ) | const |
Definition at line 73 of file cpu_timer.cc.
| double cpu_timer::accumulated_real_time | ( | ) | const |
Definition at line 66 of file cpu_timer.cc.
|
inline |
Definition at line 44 of file cpu_timer.h.
| double cpu_timer::elapsed_cpu_time | ( | ) | const |
Definition at line 60 of file cpu_timer.cc.
| double cpu_timer::elapsed_real_time | ( | ) | const |
Definition at line 54 of file cpu_timer.cc.
|
inline |
Definition at line 67 of file cpu_timer.h.
|
inline |
Definition at line 73 of file cpu_timer.h.
|
inline |
Definition at line 39 of file cpu_timer.h.
| void cpu_timer::reset | ( | ) |
Definition at line 103 of file cpu_timer.cc.
| void cpu_timer::start | ( | ) |
Definition at line 83 of file cpu_timer.cc.
| void cpu_timer::stop | ( | ) |
Definition at line 93 of file cpu_timer.cc.
|
private |
Definition at line 60 of file cpu_timer.h.
|
private |
Definition at line 59 of file cpu_timer.h.
|
private |
Definition at line 56 of file cpu_timer.h.
|
private |
Definition at line 58 of file cpu_timer.h.
|
private |
Definition at line 57 of file cpu_timer.h.
1.8.11