From 9e659c50f15cc39583395eb5c9a12baad81dc41d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 23 May 2007 10:57:46 +0000 Subject: [PATCH] Added debug timing code --- applications/osgconv/osgconv.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index 187f7c3e9..eefedfb3c 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -603,8 +604,17 @@ int main( int argc, char **argv ) fileNames.pop_back(); } + osg::Timer_t startTick = osg::Timer::instance()->tick(); + osg::ref_ptr root = osgDB::readNodeFiles(fileNames); + if (root.valid()) + { + osg::Timer_t endTick = osg::Timer::instance()->tick(); + osg::notify(osg::INFO)<<"Time to load files "<delta_m(startTick, endTick)<<" ms"<