Rise
The Vieneo Province
performance.h
Go to the documentation of this file.
1
//class for timing / profiling code
2
3
#ifndef hr_timer
4
#define hr_timer
5
6
#include <WinSock2.h>
7
#include <WS2tcpip.h>
8
#include <Windows.h>
9
10
class
Logger
;
11
12
class
CStopWatch
13
{
14
private
:
15
Logger
*
logger
;
16
17
double
fm_min
;
18
double
fm_max
;
19
double
fm_avg
;
20
unsigned
int
fm_count
;
21
22
LARGE_INTEGER
start
;
23
LARGE_INTEGER
stop
;
24
LARGE_INTEGER
frequency
;
25
double
LIToSecs
( LARGE_INTEGER & L) ;
26
void
getElapsedTime
() ;
27
28
public
:
29
CStopWatch
(
Logger
* prmLogger);
30
void
startTimer
();
31
void
stopTimer
();
32
void
Report
(
const
char
* caption)
const
;
33
};
34
35
#endif
CStopWatch::logger
Logger * logger
Definition:
performance.h:15
Logger
Definition:
Logger.h:9
CStopWatch::CStopWatch
CStopWatch(Logger *prmLogger)
Definition:
performance.cpp:4
CStopWatch::fm_max
double fm_max
Definition:
performance.h:18
CStopWatch::Report
void Report(const char *caption) const
Definition:
performance.cpp:46
CStopWatch::stop
LARGE_INTEGER stop
Definition:
performance.h:23
CStopWatch
Definition:
performance.h:12
CStopWatch::start
LARGE_INTEGER start
Definition:
performance.h:22
CStopWatch::fm_avg
double fm_avg
Definition:
performance.h:19
CStopWatch::stopTimer
void stopTimer()
Definition:
performance.cpp:27
CStopWatch::frequency
LARGE_INTEGER frequency
Definition:
performance.h:24
CStopWatch::fm_count
unsigned int fm_count
Definition:
performance.h:20
CStopWatch::startTimer
void startTimer()
Definition:
performance.cpp:22
CStopWatch::LIToSecs
double LIToSecs(LARGE_INTEGER &L)
Definition:
performance.cpp:17
CStopWatch::fm_min
double fm_min
Definition:
performance.h:17
CStopWatch::getElapsedTime
void getElapsedTime()
Definition:
performance.cpp:33
performance.h
Generated on Tue May 4 2021 15:18:22 for Rise by
1.8.14