Golioth Firmware SDK
golioth_time.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 Golioth, Inc.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #pragma once
7 
8 #include <stdint.h>
9 
11 #define GOLIOTH_WAIT_FOREVER -1
12 
14 uint64_t golioth_time_millis(void);
15 
17 void golioth_time_delay_ms(uint32_t ms);
uint64_t golioth_time_millis(void)
Time since boot, in milliseconds.
void golioth_time_delay_ms(uint32_t ms)
Delay the current RTOS thread by a certain number of milliseconds.