|
Thrill
0.1
|
Definition at line 178 of file stats_timer.hpp.
#include <stats_timer.hpp>
Public Types | |
| using | duration = std::chrono::microseconds |
| using | steady_clock = std::chrono::steady_clock |
| using | time_point = std::chrono::steady_clock::time_point |
Public Member Functions | |
| StatsTimerBase (bool) | |
| Initialize and optionally immediately start the timer. More... | |
| StatsTimerBase (StatsTimerBase &&)=default | |
| move-constructor: default More... | |
| duration | Accumulated () const |
| return currently accumulated time More... | |
| std::chrono::microseconds::rep | Microseconds () const |
| return currently accumulated time in microseconds More... | |
| std::chrono::milliseconds::rep | Milliseconds () const |
| return currently accumulated time in milliseconds More... | |
| double | MillisecondsDouble () const |
| StatsTimerBase & | operator+= (const StatsTimerBase &) |
| accumulate elapsed time from another timer More... | |
| StatsTimerBase & | operator= (StatsTimerBase &&)=default |
| move-assignment operator: default More... | |
| bool | Real () const |
| Whether the timer is real. More... | |
| StatsTimerBase & | Reset () |
| return accumulated time More... | |
| bool | running () const |
| Whether the timer is running. More... | |
| std::chrono::seconds::rep | Seconds () const |
| return currently accumulated time in milliseconds More... | |
| double | SecondsDouble () const |
| StatsTimerBase & | Start () |
| start timer More... | |
| StatsTimerBase & | StartEventually () |
| start timer only if it not running More... | |
| StatsTimerBase & | Stop () |
| stop timer More... | |
| StatsTimerBase & | StopEventually () |
| stop timer if it is running More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const StatsTimerBase &) |
| direct <<-operator for ostream. Can be used for printing with std::cout. More... | |
| JsonLine & | Put (JsonLine &line, const StatsTimerBase &t) |
| using duration = std::chrono::microseconds |
Definition at line 184 of file stats_timer.hpp.
| using steady_clock = std::chrono::steady_clock |
Definition at line 181 of file stats_timer.hpp.
| using time_point = std::chrono::steady_clock::time_point |
Definition at line 182 of file stats_timer.hpp.
|
inlineexplicit |
Initialize and optionally immediately start the timer.
Definition at line 187 of file stats_timer.hpp.
|
default |
move-constructor: default
|
inline |
return currently accumulated time
Definition at line 228 of file stats_timer.hpp.
|
inline |
return currently accumulated time in microseconds
Definition at line 233 of file stats_timer.hpp.
|
inline |
return currently accumulated time in milliseconds
Definition at line 238 of file stats_timer.hpp.
|
inline |
Definition at line 253 of file stats_timer.hpp.
|
inline |
accumulate elapsed time from another timer
Definition at line 256 of file stats_timer.hpp.
|
default |
move-assignment operator: default
|
inline |
Whether the timer is real.
Definition at line 195 of file stats_timer.hpp.
|
inline |
return accumulated time
Definition at line 223 of file stats_timer.hpp.
|
inline |
Whether the timer is running.
Definition at line 198 of file stats_timer.hpp.
|
inline |
return currently accumulated time in milliseconds
Definition at line 243 of file stats_timer.hpp.
|
inline |
return currently accumulated time in seconds as double with microseconds precision
Definition at line 249 of file stats_timer.hpp.
|
inline |
start timer
Definition at line 203 of file stats_timer.hpp.
|
inline |
start timer only if it not running
Definition at line 208 of file stats_timer.hpp.
|
inline |
stop timer
Definition at line 213 of file stats_timer.hpp.
|
inline |
stop timer if it is running
Definition at line 218 of file stats_timer.hpp.
|
friend |
direct <<-operator for ostream. Can be used for printing with std::cout.
Definition at line 261 of file stats_timer.hpp.
|
friend |
Definition at line 265 of file stats_timer.hpp.