IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Functions
iotmi_pal_Clock.h File Reference

This file defines time-related functions platform abstraction interface. More...

#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t iotmiPal_clockGetTimeMs (void)
 The timer query function.
 
uint64_t iotmiPal_clockGetEpochMs (void)
 Get epoch time in milliseconds.
 

Detailed Description

This file defines time-related functions platform abstraction interface.

Function Documentation

◆ iotmiPal_clockGetEpochMs()

uint64_t iotmiPal_clockGetEpochMs ( void  )

Get epoch time in milliseconds.

This function returns the milliseconds since epoch. Return 0 to indicate error.

Returns
Time in milliseconds.

◆ iotmiPal_clockGetTimeMs()

uint32_t iotmiPal_clockGetTimeMs ( void  )

The timer query function.

This function returns the elapsed time. This function should always return valid value.

Returns
Time in milliseconds.