Changeset 186 in flair-src for trunk/lib/FlairCore/src/Thread_impl.cpp
- Timestamp:
- Jun 23, 2017, 5:33:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/Thread_impl.cpp
r133 r186 57 57 this->priority = priority; 58 58 period = 100 * 1000 * 1000; // 100ms par defaut 59 min_ jitter= 1000 * 1000 * 1000;60 max_ jitter= 0;61 mean_ jitter= 0;59 min_latency = 1000 * 1000 * 1000; 60 max_latency = 0; 61 mean_latency = 0; 62 62 last = 0; 63 63 cpt = 0; … … 234 234 next_time += period; 235 235 #endif 236 Compute Jitter(GetTime());236 ComputeLatency(GetTime()); 237 237 } 238 238 … … 324 324 { 325 325 #ifndef __XENO__ 326 //if(last!=0)326 if(last!=0) 327 327 #endif 328 328 { Printf("Thread::%s :\n", self->ObjectName().c_str()); } … … 346 346 #endif 347 347 if (last != 0) { 348 Printf(" min jitter (ns): %lld\n", min_jitter);349 Printf(" max jitter (ns): %lld\n", max_jitter);350 Printf(" jitter moy (ns): %lld\n", mean_jitter/ cpt);348 Printf(" min latency (ns): %lld\n", min_latency); 349 Printf(" max latency (ns): %lld\n", max_latency); 350 Printf(" latency moy (ns): %lld\n", mean_latency / cpt); 351 351 Printf(" itertions: %lld\n", cpt); 352 352 } … … 370 370 } 371 371 372 void Thread_impl::Compute Jitter(Time time) {372 void Thread_impl::ComputeLatency(Time time) { 373 373 Time diff, delta; 374 374 diff = time - last; … … 384 384 return; 385 385 386 if (delta > max_ jitter)387 max_ jitter= delta;388 if (delta < min_ jitter)389 min_ jitter= delta;390 mean_ jitter+= delta;386 if (delta > max_latency) 387 max_latency = delta; 388 if (delta < min_latency) 389 min_latency = delta; 390 mean_latency += delta; 391 391 cpt++; 392 392 393 // Printf("Thread::%s jittermoy (ns):394 // %lld\n",self->ObjectName().c_str(),mean_ jitter/cpt);393 // Printf("Thread::%s latency moy (ns): 394 // %lld\n",self->ObjectName().c_str(),mean_latency/cpt); 395 395 } 396 396
Note:
See TracChangeset
for help on using the changeset viewer.