#include <timer.hh>
- Author
 - cpellegrino 
 
Definition at line 10 of file timer.hh.
 
◆ Timer() [1/3]
  
  
      
        
          | Timer::Timer  | 
          ( | 
          const Timer &  | 
          t | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Timer() [2/3]
  
  
      
        
          | Timer::Timer  | 
          ( | 
          long int  | 
          seconds,  | 
         
        
           | 
           | 
          long int  | 
          useconds  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Definition at line 20 of file timer.hh.
   22     set(seconds, useconds);
 
 
 
 
◆ Timer() [3/3]
◆ hasExpired()
      
        
          | bool Timer::hasExpired  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ hasExpiredWrt()
      
        
          | bool Timer::hasExpiredWrt  | 
          ( | 
          Timer const &  | 
          t | ) | 
           const | 
        
      
 
- Author
 - cpellegrino 
 
Definition at line 7 of file timer.cc.
   12   if (t.tv_sec < tv_sec)
 
   15   if (t.tv_usec > tv_usec)
 
 
 
 
◆ set() [1/2]
      
        
          | void Timer::set  | 
          ( | 
          long int  | 
          seconds,  | 
        
        
           | 
           | 
          long int  | 
          useconds  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 27 of file timer.cc.
   29   static const int usec_in_a_sec = 1000000;
 
   31   gettimeofday(
this, 0);
 
   35   tv_sec  += (tv_usec) / usec_in_a_sec;
 
   36   tv_usec %= usec_in_a_sec;
 
 
 
 
◆ set() [2/2]
  
  
      
        
          | void Timer::set  | 
          ( | 
          const Timer &  | 
          t | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
The documentation for this class was generated from the following files: