mirror of
https://github.com/Zygo/bees.git
synced 2025-06-16 17:46:16 +02:00
time: drop unused Timer methods
Timer::set(double d) in particular seems...wrong. Nothing uses them, so don't bother to fix them. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
@ -19,8 +19,6 @@ namespace crucible {
|
|||||||
double age() const;
|
double age() const;
|
||||||
double report(int precision = 1000) const;
|
double report(int precision = 1000) const;
|
||||||
void reset();
|
void reset();
|
||||||
void set(const chrono::high_resolution_clock::time_point &start);
|
|
||||||
void set(double delta);
|
|
||||||
double lap();
|
double lap();
|
||||||
bool operator<(double d) const;
|
bool operator<(double d) const;
|
||||||
bool operator>(double d) const;
|
bool operator>(double d) const;
|
||||||
|
12
lib/time.cc
12
lib/time.cc
@ -59,18 +59,6 @@ namespace crucible {
|
|||||||
m_start = chrono::high_resolution_clock::now();
|
m_start = chrono::high_resolution_clock::now();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Timer::set(const chrono::high_resolution_clock::time_point &start)
|
|
||||||
{
|
|
||||||
m_start = start;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
Timer::set(double delta)
|
|
||||||
{
|
|
||||||
m_start += chrono::duration_cast<chrono::high_resolution_clock::duration>(chrono::duration<double>(delta));
|
|
||||||
}
|
|
||||||
|
|
||||||
double
|
double
|
||||||
Timer::lap()
|
Timer::lap()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user