233 if ((argc == 1) && (strcmp(argv[0],
"--over") == 0)) {
239 PRINTK(
"Please turn off previous watch before to start a new watch.\n");
244 if (watchItem == NULL) {
245 PRINTK(
"Malloc error!\n");
249 watchItem->
title = TRUE;
250 watchItem->
count = WATCH_COUNT_MAX;
LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond
每秒Tick数,鸿蒙默认是每秒100次,即:10ms
void * malloc(size_t size)
动态分配内存块大小
STATIC UINT32 OsWatchOverFunc(VOID)
INT32 OsWatchOptionParsed(UINT32 argc, UINT32 *argoff, const CHAR **argv, WatchCB *watchItem)
STATIC INLINE VOID OsWatchCmdUsage(VOID)
INT32 OsWatchCmdSplice(UINT32 argc, UINT32 argoff, const CHAR **argv, WatchCB *watchItem)
UINT32 OsWatchTaskCreate(WatchCB *watchItem)