areaDetector
3-5-0
EPICS areaDetector framework
home
epics
devel
areaDetector-3-5
ADCameraLink
cameralinkApp
src
stopWatch.h
Go to the documentation of this file.
1
/*******************************************************************************
2
*
3
* cl_com_port.h
4
*
5
* Author: Tim Madden
6
* Date: 8/01/06
7
* Project: CCD Detector DAQ.
8
*
9
*
10
******************************************************************************/
11
12
/*
13
* Include files.
14
*/
15
16
#ifdef _WIN32
17
#include <windows.h>
18
#endif
19
20
#include <stdio.h>
21
#include <stdlib.h>
22
#include <string.h>
23
#include "time.h"
24
25
#include <shareLib.h>
26
27
/*
28
* Double incluson protection.
29
*/
30
#ifndef _STOPWATCH_H
31
#define _STOPWATCH_H
32
33
/*
34
* Class for
35
*/
36
37
class
epicsShareClass
stopWatch
{
38
public
:
39
stopWatch
();
40
41
void
wait(
int
us);
42
43
// for timing things. call tic. toc returns time in s since last tic.
44
void
tic();
45
double
toc();
46
bool
isElapsed(
double
sec);
47
48
protected
:
49
double
currenttime,
elapsedtime
;
50
};
51
52
#endif
stopWatch::elapsedtime
double elapsedtime
Definition:
stopWatch.h:49
stopWatch
Definition:
stopWatch.h:37
Generated by
1.8.15