18#ifndef APP_LIB_TIME_H_
19#define APP_LIB_TIME_H_
26#define APP_LIB_TIME_NAME 0x0013c24d
29#define APP_LIB_TIME_VERSION 0x200
131 uint32_t time_to_add_us);
app_lib_time_timestamp_hp_t(* app_lib_time_add_us_to_timestamp_hp_f)(app_lib_time_timestamp_hp_t base, uint32_t time_to_add_us)
Add a given number of microseconds to a high-precision timestamp base.
uint32_t app_lib_time_timestamp_coarse_t
Coarse timestamp type.
app_lib_time_timestamp_coarse_t(* app_lib_time_get_timestamp_coarse_f)(void)
Get current time as a coarse timestamp.
app_lib_time_get_timestamp_hp_f getTimestampHp
app_lib_time_add_us_to_timestamp_hp_f addUsToHpTimestamp
app_lib_time_get_max_delay_hp_us_f getMaxHpDelay
uint32_t(* app_lib_time_get_max_delay_hp_us_f)(void)
Return the maximum valid period for high-precision timestamps comparison.
uint32_t app_lib_time_timestamp_hp_t
Highest-precision timestamp type available on the platform.
app_lib_time_get_timestamp_s_f getTimestampS
app_lib_time_is_timestamp_hp_before_f isHpTimestampBefore
bool(* app_lib_time_is_timestamp_hp_before_f)(app_lib_time_timestamp_hp_t time1, app_lib_time_timestamp_hp_t time2)
Compare two high-precision timestamps.
uint32_t(* app_lib_time_get_timestamp_s_f)(void)
Get current time as a number of seconds since the node started up.
app_lib_time_get_time_difference_us_f getTimeDiffUs
uint32_t(* app_lib_time_get_time_difference_us_f)(app_lib_time_timestamp_hp_t time1, app_lib_time_timestamp_hp_t time2)
Calculate the difference between two high-precision timestamps in microseconds.
app_lib_time_get_timestamp_coarse_f getTimestampCoarse
app_lib_time_timestamp_hp_t(* app_lib_time_get_timestamp_hp_f)(void)
Get current time as a high-precision timestamp.
List of library functions.