-
Notifications
You must be signed in to change notification settings - Fork 0
Time manipulation
Gabriel Galli edited this page Feb 26, 2019
·
3 revisions
The lasso library makes heavy use of the C++ Standard Library.
Hence, time is manipulated through
std::chrono
.
In particular, its
steady_clock
is used with the following aliases, which will appear throughout this
documentation:
using clock = std::chrono::steady_clock;
using duration = std::chrono::duration<clock::rep, clock::period>;
To also guarantee the resolution of the clock is greater (smaller ticks)
than milliseconds, lasso.h
contains the following static assert, which you
might want to comment out if absolutely needed:
static_assert(lasso::clock::period::den > std::milli::den);