Changeset 202 in flair-src for trunk/lib/FlairCore/src/Thread_impl.cpp
- Timestamp:
- Nov 2, 2017, 3:04:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/Thread_impl.cpp
r186 r202 232 232 #else 233 233 self->SleepUntil(next_time); 234 next_time += period; 234 Time current = GetTime(); 235 if(current>next_time+period) self->Err("overrun of %lld\n", current-next_time); 236 while (next_time < current) { 237 next_time += period; 238 } 235 239 #endif 236 240 ComputeLatency(GetTime()); … … 326 330 if(last!=0) 327 331 #endif 328 { Printf("Thread::%s :\n", self->ObjectName().c_str()); } 332 { Printf("Thread::%s :\n", self->ObjectName().c_str()); 333 if(period_set) {Printf(" period (ns): %lld\n", period);}} 329 334 #ifdef __XENO__ 330 335 Printf(" number of context switches: %i\n", info.ctxswitches); … … 349 354 Printf(" max latency (ns): %lld\n", max_latency); 350 355 Printf(" latency moy (ns): %lld\n", mean_latency / cpt); 351 Printf(" iter tions: %lld\n", cpt);356 Printf(" iterations: %lld\n", cpt); 352 357 } 353 358 }
Note:
See TracChangeset
for help on using the changeset viewer.