#include <CPUTicker.hpp>
Definition at line 60 of file CPUTicker.hpp.
 
◆ exception_type
◆ CPUTicker() [1/2]
  
  
      
        
          | CPUTicker::CPUTicker  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ CPUTicker() [2/2]
◆ ~CPUTicker()
  
  
      
        
          | CPUTicker::~CPUTicker  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetAndCalcCPUFrequency()
      
        
          | const bool CPUTicker::GetAndCalcCPUFrequency  | 
          ( | 
          double &  | 
          frequency,  | 
        
        
           | 
           | 
          double &  | 
          target_ave_dev,  | 
        
        
           | 
           | 
          const unsigned long  | 
          interval = 1000,  | 
        
        
           | 
           | 
          const unsigned int  | 
          max_loops = 20  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
The following function will work out the processor clock frequency to a specified accuracy determined by the target average deviation required. Note that the worst average deviation of the result is less than 5MHz for a mean frequency of 90MHz. So basically the target average deviation is supplied only if you want a more accurate result, it won't let you get a worse one. (Units are Hz.)
(The average deviation is a better and more robust measure than it's cousin the standard deviation of a quantity. The item determined by each is essentially similar. See "Numerical Recipies", W.Press et al for more details.)
This function will run for a maximum of 20 seconds before giving up on trying to improve the average deviation, with the average deviation actually achieved replacing the supplied target value. Use "max_loops" to change this. To improve the value the function converges to increase "interval" (which is in units of ms, default value=1000ms). 
Definition at line 223 of file CPUTicker.cpp.
 
 
◆ GetCPUCount()
  
  
      
        
          | void CPUTicker::GetCPUCount  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ GetCPUFrequency()
  
  
      
        
          | void __fastcall jmmcg::NTUtils::CPUTicker::GetCPUFrequency  | 
          ( | 
          double &  | 
          frequency,  | 
         
        
           | 
           | 
          double &  | 
          target_ave_dev  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ GetTickCountAsSeconds()
  
  
      
        
          | double __fastcall jmmcg::NTUtils::CPUTicker::GetTickCountAsSeconds  | 
          ( | 
          void  | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetTickCountS()
      
        
          | signed __int64 CPUTicker::GetTickCountS  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
 
◆ GetTickCountUS()
◆ operator-()
◆ operator=()
The documentation for this class was generated from the following files: