Commit a7ac603a authored by Robert Schmidt's avatar Robert Schmidt

Tpool: no measurements (no trials) if not measured

parent 1727d59f
...@@ -175,6 +175,8 @@ static inline notifiedFIFO_elt_t *pollNotifiedFIFO(notifiedFIFO_t *nf) { ...@@ -175,6 +175,8 @@ static inline notifiedFIFO_elt_t *pollNotifiedFIFO(notifiedFIFO_t *nf) {
static inline time_stats_t exec_time_stats_NotifiedFIFO(const notifiedFIFO_elt_t* elt) static inline time_stats_t exec_time_stats_NotifiedFIFO(const notifiedFIFO_elt_t* elt)
{ {
time_stats_t ts = {0}; time_stats_t ts = {0};
if (elt->startProcessingTime == 0 && elt->endProcessingTime == 0)
return ts; /* no measurements done */
ts.in = elt->startProcessingTime; ts.in = elt->startProcessingTime;
ts.diff = elt->endProcessingTime - ts.in; ts.diff = elt->endProcessingTime - ts.in;
ts.p_time = ts.diff; ts.p_time = ts.diff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment