mco_system_get_hi_res_time

This function returns the number of ticks elapsed since the high-resolution timer was started.

Prototype

    timer_unit_hires mco_system_get_hi_res_time(void);

Arguments

This function has no arguments

Description

This function returns the number of ticks elapsed since the high-resolution timer was started. To convert this value to seconds, divide it by the timer’s frequency, i.e., the number of system ticks per second. The frequency of the high-resolution timer can be obtained by calling mco_system_get_hi_res_freq().

See also set_system_get_current_time_function.

Files

Header file:
mcotime.h
Source file:
mcosaltimer.c
Library:
libmcosaltimer.a
Header file:
mcotime.h
Source file:
mcosalhollow.c
Library:
libmcosalhollow.a