mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
api to accumulate stopwatches
This commit is contained in:
parent
6eced8836d
commit
f3019a3de9
|
@ -43,6 +43,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
~stopwatch() {};
|
~stopwatch() {};
|
||||||
|
|
||||||
|
void add (const stopwatch &s) {/* TODO */}
|
||||||
|
|
||||||
void reset() { m_elapsed.QuadPart = 0; }
|
void reset() { m_elapsed.QuadPart = 0; }
|
||||||
|
|
||||||
|
@ -90,6 +92,8 @@ public:
|
||||||
|
|
||||||
~stopwatch() {}
|
~stopwatch() {}
|
||||||
|
|
||||||
|
void add (const stopwatch &s) {m_time += s.m_time;}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
m_time = 0ull;
|
m_time = 0ull;
|
||||||
}
|
}
|
||||||
|
@ -141,6 +145,8 @@ public:
|
||||||
|
|
||||||
~stopwatch() {}
|
~stopwatch() {}
|
||||||
|
|
||||||
|
void add (const stopwatch &s) {m_time += s.m_time;}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
m_time = 0ull;
|
m_time = 0ull;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue