los_sys.h文件参考

浏览该文件的源代码。


数据结构

struct   tagSysTime
  system time structure. 更多...

宏定义

#define  LOS_ERRNO_SYS_PTR_NULL   LOS_ERRNO_OS_ERROR(LOS_MOD_SYS, 0x10)
  System time basic function error code: Null pointer.
#define  LOS_ERRNO_SYS_CLOCK_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_SYS, 0x11)
  System time basic function error code: Invalid system clock configuration.
#define  LOS_ERRNO_SYS_MAXNUMOFCORES_IS_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_SYS, 0x12)
  System time basic function error code: This error code is not in use temporarily.
#define  LOS_ERRNO_SYS_PERIERRCOREID_IS_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_SYS, 0x13)
  System time error code: This error code is not in use temporarily.
#define  LOS_ERRNO_SYS_HOOK_IS_FULL   LOS_ERRNO_OS_ERROR(LOS_MOD_SYS, 0x14)
  System time error code: This error code is not in use temporarily.

类型定义

typedef struct tagSysTime  SYS_TIME_S
  system time structure.

函数

UINT64  LOS_TickCountGet (VOID)
  Obtain the number of Ticks.
UINT32  LOS_CyclePerTickGet (VOID)
  Obtain the number of cycles in one second.
UINT32  LOS_Tick2MS (UINT32 uwTick)
  Convert Ticks to milliseconds.
UINT32  LOS_MS2Tick (UINT32 uwMillisec)
  Convert milliseconds to Ticks.