FLImaging 6.5.13.1
PerformanceCounter.h
1#pragma once
2
11#include "FLBase.h"
12
14namespace FLImaging
15{
17 namespace Base
18 {
19 class CInternalPerformanceCounterInternal;
20
28 class FL_EXPORT CPerformanceCounter : public CFLBase
29 {
30 SupportToDuplicateObject(CPerformanceCounter,*this);
31
32 public:
41
52
61
74
87
100
108 void Clear();
109
117 void Start();
118
127
128
138 size_t GetCheckPointCount() const;
139
140
152 double GetCheckPointInSecond(int64_t i64Index = 0) const;
153
165 double GetCheckPointInMilliSecond(int64_t i64Index = 0) const;
166
178 double GetCheckPointInMicroSecond(int64_t i64Index = 0) const;
179
180
191
202
213
214 DeclareGetClassType();
215
216 protected:
217 CInternalPerformanceCounterInternal* m_pInternal;
218 };
219 }
220}
221
Top-level base class of FLImaging.
Definition FLBase.h:36
Performance counter class.
Definition PerformanceCounter.h:29
const CPerformanceCounter & operator=(const CPerformanceCounter &pc)
Assign operator.
CPerformanceCounter()
Default constructor.
virtual ~CPerformanceCounter()
Destructor.
double GetCheckPointInMilliSecond(int64_t i64Index=0) const
Get milli second of checkpoint.
double GetElapsedTimeFromStartInMilliSecond() const
Get the elapsed time from the start time to the present in milli seconds.
double GetElapsedTimeFromStartInMicroSecond() const
Get the elapsed time from the start time to the present in micro seconds.
const CPerformanceCounter & Assign(const CPerformanceCounter *pPc)
Assign object.
size_t GetCheckPointCount() const
Get the number of checkpoints.
CPerformanceCounter(const CPerformanceCounter &rh)
Default constructor.
void Clear()
Clear checkpoint.
double GetCheckPointInMicroSecond(int64_t i64Index=0) const
Get micro second of checkpoint.
const CPerformanceCounter & Assign(const CPerformanceCounter &pc)
Assign object.
double GetCheckPointInSecond(int64_t i64Index=0) const
Get second of checkpoint.
void Start()
Set performance count start time.
double GetElapsedTimeFromStartInSecond() const
Get the elapsed time from the start time to the present in seconds.