summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-perf/lib/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-perf/lib/Timer.h')
-rw-r--r--lldb/tools/lldb-perf/lib/Timer.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/lldb/tools/lldb-perf/lib/Timer.h b/lldb/tools/lldb-perf/lib/Timer.h
index 4f8ac15f943..82bc68f1a10 100644
--- a/lldb/tools/lldb-perf/lib/Timer.h
+++ b/lldb/tools/lldb-perf/lib/Timer.h
@@ -22,34 +22,35 @@ class TimeGauge : public Gauge<double>
private:
enum class State
{
- eTSNeverUsed,
- eTSCounting,
- eTSStopped
+ eNeverUsed,
+ eCounting,
+ eStopped
};
- typedef high_resolution_clock::time_point HPTime;
- HPTime m_start;
+ typedef high_resolution_clock::time_point TimeType;
+ TimeType m_start;
double m_value;
State m_state;
- HPTime
- now ();
+ TimeType
+ Now ();
public:
TimeGauge ();
virtual
~TimeGauge ()
- {}
+ {
+ }
void
- start ();
+ Start ();
double
- stop ();
+ Stop ();
double
- value ();
+ GetValue ();
};
}
OpenPOWER on IntegriCloud