22 #include <ripple/beast/clock/abstract_clock.h>
23 #include <ripple/beast/clock/manual_clock.h>
24 #include <ripple/beast/unit_test.h>
34 template <
class Clock>
40 auto const t1(c.
now());
42 auto const t2(c.
now());
44 log <<
"t1= " << t1.time_since_epoch().count()
45 <<
", t2= " << t2.time_since_epoch().count()
46 <<
", elapsed= " << (t2 - t1).count() <<
std::endl;
61 auto c1 = c.now().time_since_epoch();
63 auto c2 = c.now().time_since_epoch();
65 auto c3 = c.now().time_since_epoch();
67 log <<
"[" << c1.count() <<
"," << c2.count() <<
"," << c3.count()
76 test(
"steady_clock", get_abstract_clock<std::chrono::steady_clock>());
77 test(
"system_clock", get_abstract_clock<std::chrono::system_clock>());
79 "high_resolution_clock",
80 get_abstract_clock<std::chrono::high_resolution_clock>());