MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / now

Method now

components/libc/cplusplus/cpp11/gcc/utils.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <sys/time.h>
13
14tick_clock::time_point tick_clock::now()
15{
16 tick_clock::rep cur_tk = clock();
17 tick_clock::duration cur_time(cur_tk);
18
19 return tick_clock::time_point(cur_time);
20}
21
22real_time_clock::time_point real_time_clock::now() noexcept
23{

Callers 8

do_unpackFunction · 0.80
do_stuffFunction · 0.80
do_packFunction · 0.80
do_convertFunction · 0.80
do_unpackFunction · 0.80
do_stuffFunction · 0.80
do_packFunction · 0.80
do_convertFunction · 0.80

Calls 2

clockFunction · 0.85
clock_gettimeFunction · 0.85

Tested by

no test coverage detected