diff --git a/code/Vis.h b/code/Vis.h index 929db51..8a0906a 100644 --- a/code/Vis.h +++ b/code/Vis.h @@ -138,11 +138,17 @@ public: } } + uint64_t firstTs = 0; void setTimestamp(uint64_t ts) { - static uint64_t firstTs = ts; + if (firstTs == 0) {firstTs = ts;} + //static uint64_t firstTs = ts; gp << "set label 1 \"" << ((ts-firstTs)/1000.0f) << "\" at screen 0.02,0.98\n"; } + void resetTimestamp() { + firstTs = 0; + } + void setFilteringMedian(double median){ gp << "set label 2 \"" << median << "\" at screen 0.02,0.90\n"; } diff --git a/code/eval/SmoothingEvalBase.h b/code/eval/SmoothingEvalBase.h index 6387d46..da34aa2 100644 --- a/code/eval/SmoothingEvalBase.h +++ b/code/eval/SmoothingEvalBase.h @@ -363,6 +363,7 @@ public: //std::ofstream statsout2("/tmp/smoothed_" + runName + ".stats"); //stats.reset(); bf->reset(); + vis.resetTimestamp(); MyState estBF;