1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

add missing documentation

This commit is contained in:
p2r3
2025-09-07 14:36:31 +03:00
parent 550edbdb37
commit 7af7462138
2 changed files with 43 additions and 9 deletions

View File

@@ -222,6 +222,10 @@ uint64_t splitmix64 (uint64_t state) {
}
#ifndef ESP_PLATFORM
// Returns system time in microseconds.
// On ESP-IDF, this is available in "esp_timer.h", and returns time *since
// the start of the program*, and NOT wall clock time. To ensure
// compatibility, this should only be used to measure time intervals.
int64_t get_program_time () {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);