diff --git a/examples/osgviewer/osgviewer.cpp b/examples/osgviewer/osgviewer.cpp index 29dbcf2df..e63cf27fd 100644 --- a/examples/osgviewer/osgviewer.cpp +++ b/examples/osgviewer/osgviewer.cpp @@ -55,8 +55,7 @@ int main( int argc, char **argv ) return 1; } - osg::Timer timer; - osg::Timer_t start_tick = timer.tick(); + osg::Timer_t start_tick = osg::Timer::instance()->tick(); // read the scene from the list of file specified commandline args. osg::ref_ptr loadedModel = osgDB::readNodeFiles(arguments); @@ -77,9 +76,9 @@ int main( int argc, char **argv ) arguments.writeErrorMessages(std::cout); } - osg::Timer_t end_tick = timer.tick(); + osg::Timer_t end_tick = osg::Timer::instance()->tick(); - std::cout << "Time to load = "<