From db028102704063de2c32576c517a174a64e784f9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 1 Feb 2004 17:19:33 +0000 Subject: [PATCH] Changed the osgviewer example to use the osg::Timer::instance instead a loca instance. --- examples/osgviewer/osgviewer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 = "<