|
Sandals
v0.0.0
A C++ library for ODEs/DAEs integration
|
Class container for a timer. More...
#include <TicToc.hh>
Public Member Functions | |
| TicToc (const TicToc &)=delete | |
| TicToc & | operator= (TicToc const &)=delete |
| TicToc () | |
| void | tic () |
| void | toc () |
| Real | elapsed_s () const |
| Real | elapsed_ms () const |
| Real | elapsed_us () const |
Private Types | |
| using | Clock = std::chrono::high_resolution_clock |
| using | Time = std::chrono::microseconds |
Private Attributes | |
| Clock::time_point | m_start_time |
| Clock::time_point | m_stop_time |
| Time | m_elapsed_time |
Class container for a timer that uses the C++ standard library chrono to measure the elapsed time between two points in the code.
|
private |
Clock type.
|
private |
Time type.
|
delete |
Copy constructor for the timer.
|
inline |
Class constructor for the timer.
|
inline |
Get the elapsed time in milliseconds.
|
inline |
Get the elapsed time in seconds.
|
inline |
Get the elapsed time in microseconds.
|
delete |
Assignment operator for the timer.
|
inline |
Start the timer.
|
inline |
Stop the timer.
|
private |
Elapsed time.
|
private |
Start time.
|
private |
Stop time.