AWS IoT Device SDK C  202011.00
SDK for connecting to AWS IoT from a device using embedded C.
clock.h File Reference

Time-related functions used by demos and tests in this SDK. More...

#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t Clock_GetTimeMs (void)
 The timer query function. More...
 
void Clock_SleepMs (uint32_t sleepTimeMs)
 Millisecond sleep function. More...
 

Detailed Description

Time-related functions used by demos and tests in this SDK.

Function Documentation

◆ Clock_GetTimeMs()

uint32_t Clock_GetTimeMs ( void  )

The timer query function.

This function returns the elapsed time.

Returns
Time in milliseconds.

◆ Clock_SleepMs()

void Clock_SleepMs ( uint32_t  sleepTimeMs)

Millisecond sleep function.

Parameters
[in]sleepTimeMsmilliseconds to sleep.