35 using period = std::chrono::nanoseconds::period;
36 using duration = std::chrono::duration<rep, period>;
37 using time_point = std::chrono::time_point<thread_cputime_clock, duration>;
39 static time_point now() {
40 using namespace std::chrono_literals;
43 [[gnu::unused]]
auto ret = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp);
45 return time_point(tp.tv_nsec * 1ns + tp.tv_sec * 1s);
Definition: thread_cputime_clock.hh:32
Seastar API namespace.
Definition: abort_on_ebadf.hh:26