Added intializer

This commit is contained in:
Robert Osfield
2016-07-01 09:09:35 +01:00
parent 64c4a35e9a
commit 0f05a4ceaa

View File

@@ -8,7 +8,10 @@
class StatLogger
{
public:
StatLogger(const std::string& label): _start(getTick()), _label(label) {}
StatLogger(const std::string& label): _label(label)
{
_start = _stop = getTick();
}
~StatLogger() {
_stop = getTick();
OSG_INFO << std::flush