chronos library
ratio template
mano, micro, milli
ratio <1,1>
ratio <60,1>
ratio <3600,1>
// in this case diff is the difference between two time points.
// just to be clear, declaring a duration or two.
duration<double, ratio<60,1>>{diff}
duration<double, milli>{diff}
now() is a member function that returns a time point.