From cd6becd442a50a6e2f7129108e1c2c495f885764 Mon Sep 17 00:00:00 2001 From: darkrose Date: Tue, 17 Jul 2012 23:00:04 +1000 Subject: Implement node timers --- src/nodetimer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nodetimer.h') diff --git a/src/nodetimer.h b/src/nodetimer.h index deb77f10e..f8d3e1c57 100644 --- a/src/nodetimer.h +++ b/src/nodetimer.h @@ -35,15 +35,15 @@ with this program; if not, write to the Free Software Foundation, Inc., class NodeTimer { public: - NodeTimer(): duration(0.), elapsed(0.) {} - NodeTimer(f32 duration_, f32 elapsed_): - duration(duration_), elapsed(elapsed_) {} + NodeTimer(): timeout(0.), elapsed(0.) {} + NodeTimer(f32 timeout_, f32 elapsed_): + timeout(timeout_), elapsed(elapsed_) {} ~NodeTimer() {} void serialize(std::ostream &os) const; void deSerialize(std::istream &is); - f32 duration; + f32 timeout; f32 elapsed; }; @@ -81,7 +81,7 @@ public: } // A step in time. Returns map of elapsed timers. - std::map step(float dtime); + std::map step(float dtime); private: std::map m_data; -- cgit v1.2.3