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

Function clock_cpu_gettime

components/drivers/cputime/cputime.c:37–44  ·  view source on GitHub ↗

* The clock_cpu_gettime() function shall return the current value of cpu time tick. * * @return the cpu tick */

Source from the content-addressed store, hash-verified

35 * @return the cpu tick
36 */
37uint64_t clock_cpu_gettime(void)
38{
39 if (_cputime_ops)
40 return _cputime_ops->cputime_gettime();
41
42 rt_set_errno(ENOSYS);
43 return 0;
44}
45
46/**
47 * The clock_cpu_settimeout() fucntion set timeout time and timeout callback function

Callers 5

rt_cputimer_initFunction · 0.85
rt_cputimer_controlFunction · 0.85
tick_isrFunction · 0.85
rt_hw_tick_initFunction · 0.85
rt_hw_us_delayFunction · 0.85

Calls 1

rt_set_errnoFunction · 0.85

Tested by

no test coverage detected