1 Star 0 Fork 5K

jackluluonema / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_time-h.md 6.22 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/jackluluonema/docs.git
git@gitee.com:jackluluonema/docs.git
jackluluonema
docs
docs
master

搜索帮助