1 Star 0 Fork 5.4K

How / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_time-h.md 6.29 KB
一键复制 编辑 原始数据 按行查看 历史
[yang] 提交于 2020-12-12 14:19 . Description: update docs 20201212

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

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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mike-mei/docs.git
git@gitee.com:mike-mei/docs.git
mike-mei
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891