Eclipse SUMO - Simulation of Urban MObility
|
#include <StopWatch.h>
Public Member Functions | |
void | add (const StopWatch< TimeT, ClockT > &other) |
long long int | elapsed () const |
long long int | getAverage () const |
const std::vector< TimeT > & | getHistory () const |
long long int | getTotal () const |
void | start () |
long long int | stop () |
StopWatch (const bool calibrate=false) | |
Private Attributes | |
std::chrono::time_point< ClockT > | myEnd |
std::vector< TimeT > | myHistory |
std::chrono::time_point< ClockT > | myStart |
TimeT | myTimingCost |
Definition at line 35 of file StopWatch.h.
|
inline |
Definition at line 37 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myEnd, StopWatch< TimeT, ClockT >::myStart, StopWatch< TimeT, ClockT >::myTimingCost, and StopWatch< TimeT, ClockT >::start().
|
inline |
Definition at line 63 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myHistory.
Referenced by MSEdgeControl::~MSEdgeControl().
|
inline |
Definition at line 57 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myEnd, StopWatch< TimeT, ClockT >::myHistory, StopWatch< TimeT, ClockT >::myStart, and StopWatch< TimeT, ClockT >::myTimingCost.
Referenced by StopWatch< TimeT, ClockT >::stop().
|
inline |
Definition at line 71 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myHistory.
Referenced by MSEdgeControl::~MSEdgeControl().
|
inline |
Definition at line 67 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myHistory.
Referenced by MSEdgeControl::~MSEdgeControl().
|
inline |
Definition at line 75 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myHistory.
Referenced by MSEdgeControl::~MSEdgeControl().
|
inline |
Definition at line 48 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::myEnd, and StopWatch< TimeT, ClockT >::myStart.
Referenced by StopWatch< TimeT, ClockT >::StopWatch().
|
inline |
Definition at line 52 of file StopWatch.h.
References StopWatch< TimeT, ClockT >::elapsed(), and StopWatch< TimeT, ClockT >::myEnd.
|
private |
Definition at line 81 of file StopWatch.h.
Referenced by StopWatch< TimeT, ClockT >::elapsed(), StopWatch< TimeT, ClockT >::start(), StopWatch< TimeT, ClockT >::stop(), and StopWatch< TimeT, ClockT >::StopWatch().
|
mutableprivate |
Definition at line 83 of file StopWatch.h.
Referenced by StopWatch< TimeT, ClockT >::add(), StopWatch< TimeT, ClockT >::elapsed(), StopWatch< TimeT, ClockT >::getAverage(), StopWatch< TimeT, ClockT >::getHistory(), and StopWatch< TimeT, ClockT >::getTotal().
|
private |
Definition at line 80 of file StopWatch.h.
Referenced by StopWatch< TimeT, ClockT >::elapsed(), StopWatch< TimeT, ClockT >::start(), and StopWatch< TimeT, ClockT >::StopWatch().
|
private |
Definition at line 82 of file StopWatch.h.
Referenced by StopWatch< TimeT, ClockT >::elapsed(), and StopWatch< TimeT, ClockT >::StopWatch().