K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches

Public Headers

file  time.h
 

Functions

uint64_t kfsw_time_monotonic_ms (void)
 
uint64_t kfsw_time_monotonic_us (void)
 

Description

Monotonic elapsed-time readings for scheduling and measurements.

See kfsw_time_monotonic_ms() and kfsw_time_monotonic_us(). These readings are local elapsed time, not synchronized spacecraft time.

Function Documentation

◆ kfsw_time_monotonic_ms()

uint64_t kfsw_time_monotonic_ms ( void  )

#include <time.h>

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  )

#include <time.h>

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.