代码搜索结果
找到约 10,000 项符合
Timer 的代码
timer.h
//-----------------------------------------------------------------------------
// TIMER.H
//
//-----------------------------------------------------------------------------
void init_timer2(voi
timer.c
/*****************************************************************************
*
*
* 定时器函数
*
*
******************************************************************************/
#include "def
timer.c
#include
#include
#include
struct timeval tpstart,tpend;
float timeuse;
static timer_count = 0;
void prompt_info(int signo)
{
time_t t = time(NULL);
/* [1]
timer.h
#ifndef _TIMER_H_
#define _TIMER_H_
#define UNIVERSAL_TIMER 0
#define PPCANCFG_TIMER 1 /* 1 Timer fuer UCIO_PPC.C */
#define STATE_TIMER1 2 /* fuer div. Zustaende */
#define
timer.h
#ifndef TIMER_H
#define TIMER_H
#include
#include
class Timer {
private:
struct rusage res;
struct timeval tp;
double virtual_time, real_time;
public:
enum TYPE
timer.c
#include "Timer.h"
/*
* The virtual time of day and the real time of day are calculated and
* stored for future use. The future use consists of subtracting these
* values from similar values o
timer.h
//
// timer.h - A stopwatch
//
// author: J.I.v.Hemert
// last updated : 29-09-1997
//
// This file implements the class TimerC.
//
#ifndef TIMER_H
#define TIMER_H
#ifdef Linux
#include
timer.cc
//
// timer.cc - A stopwatch
//
// author: J.I.v.Hemert
// last updated : 10-10-1997
//
// This file implements the class TimerC.
//
#include "timer.h"
void TimerC::Reset ()
{
#ifdef Linux
struc