osal_time.h

Overview

Related Modules:

OSAL

Description:

Declares the time, sleep, and delay interfaces.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

OsalTimespec

Defines time.

Functions

Function Name

Description

OsalSleep (uint32_t sec)

void 

Describes thread sleep, in seconds.

OsalMSleep (uint32_t ms)

void 

Describes thread sleep, in milliseconds.

OsalGetTime (OsalTimespec time)

int32_t 

Obtains the second and microsecond time.

OsalDiffTime (const OsalTimespec start, const OsalTimespec end, OsalTimespec diff)

int32_t 

Obtains time difference.

OsalGetSysTimeMs (void)

uint64_t 

Obtains the system time.

OsalMDelay (uint32_t ms)

void 

Describes thread delay, in milliseconds.

OsalUDelay (uint32_t us)

void 

Describes thread delay, in microseconds.