In OSG you could do something like:
osg::Timer *globalHighResTimer=osg::Timer::instance();
uint64_t currentTimeNanoSec()
{
osg::Timer_t timer_t=globalHighResTimer->tick();
return (uint64_t)(timer_t * globalHighResTimer->getSecondsPerTick() *
1000000000);//timerTick * secondsPerTick * secondsToNanoSeconds
}
I'm not sure what the Delta3D class does under the hood.
jp
Paul Melis wrote:
Kelly Fields wrote:
Yes, sorry - I need millisecond precision. So I need a number to be
like "3.234 seconds" rather than "3 seconds"
But aren't those methods you used from the Delta3D API? Are you sure
these methods are in OSG?
Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org