Changeset 2751 for GTP/trunk/App/Demos/Vis/CHC_revisited/Timers.cpp
- Timestamp:
- 06/10/08 13:15:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Timers.cpp
r2642 r2751 107 107 108 108 #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 } 121 122 #endif 122 123 } … … 138 139 time_t t; 139 140 time(&t); 141 140 142 return ctime(&t); 141 143 }
Note: See TracChangeset
for help on using the changeset viewer.