Changeset 1980
- Timestamp:
- 04/16/08 21:18:35 (7 months ago)
- Files:
-
- 1 modified
-
features/performance/src/common/timer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
features/performance/src/common/timer.h
r1979 r1980 207 207 *ctx = UpTime(); 208 208 #else 209 gettimeofday(ctx, NULL) 209 gettimeofday(ctx, NULL); 210 210 #endif 211 211 } … … 239 239 gettimeofday(&now, NULL); 240 240 241 if (!timerisset( last)) {241 if (!timerisset(ctx)) { 242 242 timesclear(ret); 243 243 } else { 244 timersub(&now, last, &delta);244 timersub(&now, ctx, &delta); 245 245 TIMEVAL_TO_TIMESPEC(&delta, ret); 246 246 }
