kernel/sys_clock.h: Deprecate and convert uses of old conversions
Mark the old time conversion APIs deprecated, leave compatibility macros in place, and replace all usage with the new API. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
f2b75fd644
commit
8892406c1d
53 changed files with 122 additions and 114 deletions
|
@ -129,7 +129,7 @@ between two points in time.
|
|||
|
||||
/* compute how long the work took (assumes no counter rollover) */
|
||||
cycles_spent = stop_time - start_time;
|
||||
nanoseconds_spent = SYS_CLOCK_HW_CYCLES_TO_NS(cycles_spent);
|
||||
nanoseconds_spent = (u32_t)k_cyc_to_ns_floor64(cycles_spent);
|
||||
|
||||
Suggested Uses
|
||||
**************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue