Changeset 1971 for features/performance/src/common/rdtsc.h
- Timestamp:
- 04/09/08 15:37:35 (9 months ago)
- Files:
-
- 1 modified
-
features/performance/src/common/rdtsc.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
features/performance/src/common/rdtsc.h
r1970 r1971 106 106 */ 107 107 static inline void 108 rdtsc_sleep(const struct time valsleep)108 rdtsc_sleep(const struct timespec sleep) 109 109 { 110 110 u_int64_t sleep_until; … … 115 115 clicks_per_usec = clicks_per_usec > 0 ? clicks_per_usec : rdtsc_calibrate(0); 116 116 117 sleep_until += clicks_per_usec * TIME VAL_TO_MICROSEC(&sleep);117 sleep_until += clicks_per_usec * TIMESPEC_TO_MICROSEC(&sleep); 118 118 119 119 while (now < sleep_until)
