summaryrefslogtreecommitdiff
path: root/base/time.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-03-24 04:35:48 -0500
committerNathan Binkert <binkertn@umich.edu>2004-03-24 04:35:48 -0500
commit2484aeaee7004f7b8c128cf58e08c9b676fc08e6 (patch)
tree4e3333f47a344535c23cc14627cccf207d2e25c4 /base/time.hh
parent832a0917cf28d09520c1d2ac60921c4e034f7c26 (diff)
downloadgem5-2484aeaee7004f7b8c128cf58e08c9b676fc08e6.tar.xz
Minor changes to Time
base/time.cc: base/time.hh: Don't set the current time in the constructor. Use a flag and make the default to not set the time. Change reset() to set(). Dunno. Just seems right. --HG-- extra : convert_revision : 5a3b09ed30376d4863b45b2bae551ba1c3aff8e1
Diffstat (limited to 'base/time.hh')
-rw-r--r--base/time.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/time.hh b/base/time.hh
index 64da52e1d..1f8c7e747 100644
--- a/base/time.hh
+++ b/base/time.hh
@@ -42,15 +42,15 @@ class Time
mutable _timeval *time;
public:
- Time();
+ explicit Time(bool set_now = false);
Time(const timeval &val);
Time(const Time &val);
~Time();
+ void set();
const timeval &get() const;
void set(const timeval &val);
- void reset();
double operator()() const;
std::string date(std::string format = "") const;