代码搜索结果
找到约 10,000 项符合
Timer 的代码
timer.c
/*====================================================================*/
/* */
/* NOTE: Ensure this program is compiled for LARGE
timer.c
#include "s3c4510b.h"
#include "isr.h"
#include "typDef.h"
#include "timer.h"
extern void time0_isr(void);
/* Timer0,1 can be used for system real time clock */
/*************************
timer.h
/*********************************************************/
/* IDENTIFIER FOR TIMER DEVICE */
/*********************************************************/
#define TIMER_DEV0
timer_unix
realname "Unix Timer"
define TIMER_UNIX
add_file tm_unix.cpp
add_file tm_unix.h
timer_posix
realname "POSIX Timer"
needs_std posix1
link_to rt
define TIMER_POSIX
add_file tm_posix.cpp
add_file tm_posix.h
timer.h
#ifndef _TIMER_H_
#define _TIMER_H_
#include
class timer
{
public:
void wait(int timeToWait);
long currentTime(void);
long elapsedTime(long begin, long end);
};
vo
timer.h
/*------------------------------------------------------------------------*/
/* */
/* TIMER.H
timer.h
/***************************************************************************\
** TIMING CODE MODULE **
**========================================
timer.c
/***************************************************************************\
** TIMING CODE MODULE (80x86 specific code!) **
**========================================