📄 timer.h
字号:
//=====================
//file name: timer.h
//Discription: provide some timer-relative method used by the monitor program
//Author: Decell.Zhou
//Version:
// 0.1|
//=====================
#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "option.h"
#include "config.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
//============[timerInit]=======
//Discription: this method is used to initial the timer
//Pram: none
//return:none
//version:
//==============================
void timerInit(void);
//============[timerStart]======
//Discription: this method is used to start the timer
//Pram: none
//return: none
//version: none
//==============================
void timerStart(void);
//============[timerStop]======
//Discription: this method is used to stop the timer
//Pram: none
//return: none
//version: none
//==============================
void timerStop(void);
//============[setTimer]========
//Discription: this method is used to setup the timeout count for the timer
//Pram:
// int|ms|the time out time is defined in ms
//return:none
//==============================
void setTimer(int second);
//============[timerExpire]=====
//Discription: this method checks to see if the timer has timeout
//Pram: none
//return:
// 0|do not timeout
// 1|has been timeout
//==============================
char timerExpire(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -