|
OpenVDB 13.0.0
|
#include <nanovdb/util/Timer.h>
Public Member Functions | |
| Timer () | |
| Default constructor. | |
| Timer (const std::string &msg, std::ostream &os=std::cerr) | |
| Constructor that starts the timer. | |
| void | start (const std::string &msg, std::ostream &os=std::cerr) |
| Start the timer. | |
| void | record () |
| Record the stop time so the elapsed time since start can be computed. | |
| float | milliseconds () const |
| Returns the time in milliseconds since record was called. | |
| template<typename AccuracyT = std::chrono::milliseconds> | |
| auto | elapsed () |
| call record and return the elapsed time (since start) in miliseconds | |
| template<typename AccuracyT = std::chrono::milliseconds> | |
| void | stop (std::ostream &os=std::cerr) |
| stop the timer and print elapsed time to a stream | |
| template<typename AccuracyT = std::chrono::milliseconds> | |
| void | restart (const std::string &msg, std::ostream &os=std::cerr) |
| stop and start the timer again | |
|
inline |
Default constructor.
|
inline |
Constructor that starts the timer.
| msg | string message to be printed when timer is started |
| os | output stream for the message above |
|
inline |
call record and return the elapsed time (since start) in miliseconds
|
inline |
Returns the time in milliseconds since record was called.
|
inline |
Record the stop time so the elapsed time since start can be computed.
|
inline |
stop and start the timer again
| AccuracyT | Template parameter defining the accuracy of the reported times |
| msg | string message to be printed when timer is started |
| os | output stream for the message above |
|
inline |
Start the timer.
| msg | string message to be printed when timer is started |
| os | output stream for the message above |
|
inline |
stop the timer and print elapsed time to a stream
| AccuracyT | Template parameter defining the accuracy of the reported times |
| os | output stream for the message above |