|
JASSv2
|
General purpose cross-platform timer methods for C++11 and later. More...
#include <timer.h>
Classes | |
| class | duration |
| A duration as returned by a stop_watch. More... | |
Static Public Member Functions | |
| static stop_watch | start () |
| Start a stop watfh. More... | |
| static duration | stop (stop_watch watch) |
| Return the time on the stop watch. More... | |
| static void | unittest (void) |
| Unit test this class. | |
Private Types | |
| typedef std::chrono::time_point< std::chrono::steady_clock, std::chrono::nanoseconds > | stop_watch |
| An instance of a timer. | |
General purpose cross-platform timer methods for C++11 and later.
|
inlinestatic |
Start a stop watfh.
|
inlinestatic |
Return the time on the stop watch.
| watch | [in] The stop watch to check. |
1.8.13