📄 cms_wtptimer.h
字号:
/****************************************************************************/
/* */
/* MOBILESOFT CHINA (CMS) SYSTEMS, INC. */
/* WIRELESS APPLICATION DESIGN CENTER (NANJING CHINA) */
/* */
/****************************************************************************/
/* */
/* CMS CONFIDENTIAL AND PROPRIETARY */
/* */
/* This source is the sole property of CMS Systems, Inc. Reproduction */
/* or utilization of this source in whole or in part is forbidden without */
/* the written consent of CMS Systems, Inc. */
/* */
/* (c) Copyright CMS Systems, Inc., 2000. All Rights Reserved. */
/* */
/****************************************************************************/
/* */
/* wtp_timer.h */
/* */
/****************************************************************************/
/*--------------------------------------------------------------------------*/
/* Date | author | Description | version */
/*--------------------------------------------------------------------------*/
/* 06/12/00 | Xiaogang Xu | Creation | 1.2 */
/*--------------------------------------------------------------------------*/
/****************************************************************************/
#ifndef WTP_TIMER_H
#define WTP_TIMER_H
typedef struct WTPTimer WTPTimer;
#include "Cms_WTP.h"
struct WTPTimer {
long start_time;
long interval;
WTPMachine *machine;
WTPEvent *event;
};
extern void mms_StartTimer(unsigned long TimerID,long v_MiliSecond);
extern void mms_StopTimer (unsigned long TimerID);
/*
* Initialize timers data structure. This function MUST be called before others.
* This function is put in wapbox.c -- bugger
*/
void wtp_timer_init(void);
/*
* Shut down all timers. This function MUST be called after timers aren't
* needed anymore.
*/
void wtp_timer_shutdown(void);
/*
* Create and initialize a WTPTimer object.
*/
WTPTimer *wtp_timer_create(void);
/*
* Destroy a WTPTimer object. It is implicitly stopped as well.
*/
void wtp_timer_destroy(WTPTimer *timer);
/*
* Start the timer.
*/
void wtp_timer_start(WTPTimer *timer, long interval);
/*
* Stop the timer.
*/
void wtp_timer_stop(WTPTimer *timer);
/*
* Check all timers and see whether they have elapsed, and if they have,
* send the event. (The timer is then stopped, of course.)
*/
int wtp_timer_check(WTPTimer *timer);
/*
* Print all fields of a timer, using the project debugging function
*/
void wtp_timer_dump(WTPTimer *timer);
int wtp_timer_timeleft(WTPTimer *timer);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -