Changeset 11041

Show
Ignore:
Timestamp:
02/09/10 18:38:02 (6 months ago)
Author:
robert
Message:

Added extra elaspedTime_*() methods to help with reporting times in milliseconds etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/Timer

    r10594 r11041  
    103103        } 
    104104 
     105        /** elapsed time in seconds. */ 
    105106        inline double elapsedTime() const 
    106107        { 
    107108            return _timer->delta_s(_startTick, _timer->tick()); 
     109        } 
     110 
     111        /** elapsed time in milliseconds. */ 
     112        inline double elapsedTime_m() const 
     113        { 
     114            return _timer->delta_m(_startTick, _timer->tick()); 
     115        } 
     116 
     117        /** elapsed time in microseconds. */ 
     118        inline double elapsedTime_u() const 
     119        { 
     120            return _timer->delta_u(_startTick, _timer->tick()); 
     121        } 
     122 
     123        /** elapsed time in nanoseconds. */ 
     124        inline double elapsedTime_n() const 
     125        { 
     126            return _timer->delta_n(_startTick, _timer->tick()); 
    108127        } 
    109128