# osal\_time.h - [Overview](#section1499329245165628) - [Summary](#section148107057165628) - [Data Structures](#nested-classes) - [Functions](#func-members) ## **Overview** **Related Modules:** [OSAL](OSAL.md) **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

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.