1 Star 0 Fork 5K

jackluluonema / docs

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

time.h

Overview

Related Modules:

TIME-SYS

Description:

Provides structures and functions related to the system time.

You can read and write the system time and set timers.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

timeval

Describes a period of time, accurate to microseconds.

timespec

Describes a period of time, accurate to nanoseconds.

itimerval

Describes a timer.

timezone

Describes a time zone.

Macros

Macro Name and Value

Description

ITIMER_REAL   0

Defines the timer that runs in real time.

Functions

Function Name

Description

gettimeofday (struct timeval *__restrict value, void *__restrict ovalue)

int 

Obtains the system time and time zone.

getitimer (int w, struct itimerval *old)

int 

Obtains the value of an intermittent timer.

setitimer (int w, const struct itimerval *__restrict value, struct itimerval *__restrict ovalue)

int 

Sets the value for a timer.

settimeofday (const struct timeval *tv, const struct timezone *tz)

int 

Sets the system time and time zone.

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

搜索帮助