Ignore:
Timestamp:
06/10/08 13:15:59 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/Timers.cpp

    r2642 r2751  
    107107   
    108108#else 
    109    
    110   if (hasHRTimer == 1) { 
    111     LARGE_INTEGER counter; 
    112     QueryPerformanceCounter(&counter); 
    113     // return in usec 
    114     return (long) (1000000*counter.QuadPart/(hrFreq.QuadPart)); 
    115   } else { 
    116     static struct _timeb mtime; 
    117     _ftime(&mtime); 
    118      
    119     return 1000*(1000*mtime.time + mtime.millitm); 
    120   } 
     109 
     110        if (hasHRTimer == 1)  
     111        { 
     112                LARGE_INTEGER counter; 
     113                QueryPerformanceCounter(&counter); 
     114                // return in usec 
     115                return (long) (1000000*counter.QuadPart/(hrFreq.QuadPart)); 
     116        } else { 
     117                static struct _timeb mtime; 
     118                _ftime(&mtime); 
     119 
     120                return 1000 * (1000 * mtime.time + mtime.millitm); 
     121        } 
    121122#endif 
    122123} 
     
    138139  time_t t; 
    139140  time(&t); 
     141 
    140142  return ctime(&t); 
    141143} 
Note: See TracChangeset for help on using the changeset viewer.