代码搜索结果
找到约 51,516 项符合
Timer 的代码
timer.c
/* General purpose software timer facilities
*/
#include
#include "global.h"
#include "timer.h"
#include "proc.h"
#include "mbuf.h"
#include "commands.h"
#include "daemon.h"
#inclu
timer.h
#ifndef _TIMER_H
#define _TIMER_H
#ifndef _GLOBAL_H
#include "global.h"
#endif
/* Software timers
* There is one of these structures for each simulated timer.
* Whenever the timer is runn
timer.cxx
//////////////////////////////////////////////////////////////////////////////
// Timer.cxx
// =========
// High Resolution Timer.
// This timer is able to measure the elapsed time with 1 micro-se
timer.h
//////////////////////////////////////////////////////////////////////////////
// Timer.h
// =======
// High Resolution Timer.
// This timer is able to measure the elapsed time with 1 micro-second
timer.c
//[Timer.c]定时器----------------------------------------------------------*
//本文件包含: *
// (1)TimerInit:定时器初始化
timer.h
//[Timer.h]定时器头文件-----------------------------------------------------
//定时器需要用到的头文件
#include //MCU映像寄存器名
#include "Type.h" //类型别名定义
//定时器相关函数声明
void TimerI
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:
timer.cpp
#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 val
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:
timer.cpp
#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 val