Added intializer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user