src/Common/CppUnitTests/CppUnitTestFunctionExecTimer.h

Go to the documentation of this file.
00001 #pragma once
00002 
00004 class CppUnitTestFunctionExecTimer
00005 {
00006 private:
00007         double duration;
00008         clock_t start;
00009         clock_t finish;
00010 public:
00011     CppUnitTestFunctionExecTimer();    
00012         ~CppUnitTestFunctionExecTimer();
00013         void StartTimer( void );
00014         void StopTimer( void );
00015         double GetDuration( void ) const;
00016         double TimeElaspedInSeconds() const;
00017         std::string ToString( void ) const;
00018 };


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