Convert Ticks to milliseconds.
- Description:
- This API is used to convert Ticks to milliseconds.
- 注意
-
The number of milliseconds obtained through the conversion is 32-bit.
- 参数
-
tick | [IN] Number of Ticks. The value range is (0,OS_SYS_CLOCK). |
- 返回值
-
UINT32 | Number of milliseconds obtained through the conversion. Ticks are successfully converted to milliseconds. |
- Dependency:
-
los_sys.h: the header file that contains the API declaration.
- 参见
- LOS_MS2Tick
Convert Ticks to milliseconds.
- 参数
-
- 返回
- LITE_OS_SEC_TEXT_MINOR
在文件 los_sys.c 第 115 行定义.
117 return ((
UINT64)tick * OS_SYS_MS_PER_SECOND) / LOSCFG_BASE_CORE_TICK_PER_SECOND;