Ignore:
Timestamp:
09/27/07 23:53:07 (12 years ago)
Author:
art
Message:
  • rdtscTimerSource plugin added
  • NOTE: Be carefull on systems with dynamicly changeable frequencies, since the rdtsc instruction may produce wrong results
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Plugins/rdtscTimeSource/TimeSource.h

    r1 r55  
    1818// Includes 
    1919//---------------------------------------------------------------------------------- 
    20 #include <nrEngine.h> 
     20#include <nrEngine/nrEngine.h> 
    2121#include "Cpu.h" 
    22 #include <boost/shared_ptr.hpp> 
    2322 
    2423 
     
    6665        * it is needed. 
    6766        **/ 
    68         void reset(); 
     67        void reset(float64 startValue = 0.0); 
    6968 
    7069        /** 
     
    7776        **/ 
    7877        void sync(); 
    79          
     78 
     79    /** 
     80     * Check if the rdtsc instruction is supported 
     81     **/ 
     82    bool isSupported() { return _isSupported; } 
     83        
    8084private: 
    8185 
     86    //! Is supported 
     87    bool _isSupported; 
     88     
    8289        //! Store the start time as 64Bit integer, for rtdsc counter 
    8390        uint64  _startTimeRT; 
Note: See TracChangeset for help on using the changeset viewer.