Google Cloud IoT device SDK for embedded C  1.0.2
iotc_bsp_time.h File Reference

Go to the source code of this file.

Functions

void iotc_bsp_time_init ()
 
iotc_time_t iotc_bsp_time_getcurrenttime_seconds ()
 
iotc_time_t iotc_bsp_time_getcurrenttime_milliseconds ()
 
iotc_time_t iotc_bsp_time_getmonotonictime_milliseconds ()
 

Detailed Description

Keeps time.

Use hardware or NTP servers to maintain an accurate clock. The SDK calls these functions to determine the:

  • Exact execution time of scheduled tasks
  • Delayed reconnection logic

Definition in file iotc_bsp_time.h.

Function Documentation

◆ iotc_bsp_time_getcurrenttime_milliseconds()

iotc_time_t iotc_bsp_time_getcurrenttime_milliseconds ( )

Gets the milliseconds since Epoch.

◆ iotc_bsp_time_getcurrenttime_seconds()

iotc_time_t iotc_bsp_time_getcurrenttime_seconds ( )

Gets the seconds since Epoch.

◆ iotc_bsp_time_getmonotonictime_milliseconds()

iotc_time_t iotc_bsp_time_getmonotonictime_milliseconds ( )

Gets the monotonic time in milliseconds.

◆ iotc_bsp_time_init()

void iotc_bsp_time_init ( )

Initializes the platform-specific timekeeping requirements.