📄 timer.hpp
字号:
/* ======================================================================== *\ | | | JOYIT Communication Technology | Copyright (C) 2002-2003, All Right Reserved. | | System: Programmable Signaling Gateway | Sub-system: PSG | Filename: timer.hpp | Environment: Red Hat Linux 9.0 & GNU C/C++ Compiler 3.2.2 | Function description: Timer | |\* ======================================================================== */#ifndef _TIMER_HPP#define _TIMER_HPP#ifndef _PUBDEF_HPP#include "pubdef.hpp"#endif#ifndef _EVENT_HPP#include "event.hpp"#endifextern "C"{};#pragma pack(1)struct STimer{ WEvent ev; int iTimeVal; int iTimeLeft; char cTimerFlag; char cTimerPrecision;};#pragma pack( )class STimerQue{public: STimerQue(); ~STimerQue(); int StartTimer(const WEvent &); int StopTimer(const WEvent &); int DelTimerQue(UINT32 mid=0); int VerifyTimer(const WEvent& event); // Add 2005-01-10, by Wujianjin.//private: EventQueueType *m_opaTimerQue[IPC_MAXTIMERQUE]; };#endif// ------------------------------------------------------------------------//// Revision list.// ==============//// 1.0, 2003-05-28, Lu Shengsheng// Initial version.//// ------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -