CppUnitTestFunctionExecTimer.h
Go to the documentation of this file.
1 #pragma once
2 
5 {
6 private:
7  double duration;
8  clock_t start;
9  clock_t finish;
10 public:
13  void StartTimer( void );
14  void StopTimer( void );
15  double GetDuration( void ) const;
16  double TimeElaspedInSeconds() const;
17  std::string ToString( void ) const;
18 };
CppUnitTestFunctionExecTimer()
Definition: CppUnitTestFunctionExecTimer.cpp:3
A simple TIMER class useful for tracking a call execution time.
Definition: CppUnitTestFunctionExecTimer.h:4
std::string ToString(void) const
Definition: CppUnitTestFunctionExecTimer.cpp:35
~CppUnitTestFunctionExecTimer()
Definition: CppUnitTestFunctionExecTimer.cpp:10
double GetDuration(void) const
Definition: CppUnitTestFunctionExecTimer.cpp:25
double TimeElaspedInSeconds() const
Definition: CppUnitTestFunctionExecTimer.cpp:30
void StartTimer(void)
Definition: CppUnitTestFunctionExecTimer.cpp:14
void StopTimer(void)
Definition: CppUnitTestFunctionExecTimer.cpp:19


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com