Fix timer.

This commit is contained in:
castano 2009-10-21 07:39:08 +00:00
parent 2d97ee9c03
commit dcfdabaee3

View File

@ -17,7 +17,7 @@ public:
void start() { m_start = clock(); }
void stop() { m_stop = clock(); }
int elapsed() const { return (1000 * (m_stop - m_start)) / CLOCKS_PER_SEC; }
float elapsed() const { return float(m_stop - m_start) / CLOCKS_PER_SEC; }
private:
clock_t m_start;