K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
time.h File Reference
#include <stdint.h>

Functions

uint64_t kfsw_time_monotonic_ms (void)
 
uint64_t kfsw_time_monotonic_us (void)
 

Description

Monotonic elapsed-time API.

Function Documentation

◆ kfsw_time_monotonic_ms()

uint64_t kfsw_time_monotonic_ms ( void  )

Get monotonic elapsed time in milliseconds.

Use for scheduling and timeouts. This clock is not synchronized to UTC.

Returns
Milliseconds elapsed since the platform monotonic clock started.

◆ kfsw_time_monotonic_us()

uint64_t kfsw_time_monotonic_us ( void  )

Get monotonic elapsed time in microseconds.

Use for intervals and measurements. This clock is not synchronized to UTC.

Returns
Microseconds elapsed since the platform monotonic clock started.