summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-perf/lib/Timer.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-03-21 03:32:24 +0000
committerGreg Clayton <gclayton@apple.com>2013-03-21 03:32:24 +0000
commitef0d2142ba3cad17ed09130f98b6efe2e00b2aa2 (patch)
treea68f27e232693bd1815ba96acdd60617d12dce39 /lldb/tools/lldb-perf/lib/Timer.h
parentcf691565ed7e36956572828bb3023a9830b0900d (diff)
downloadbcm5719-llvm-ef0d2142ba3cad17ed09130f98b6efe2e00b2aa2.tar.gz
bcm5719-llvm-ef0d2142ba3cad17ed09130f98b6efe2e00b2aa2.zip
Modify code to adhere to LLDB coding conventions.
llvm-svn: 177623
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