include cps in batch ended
This commit is contained in:
1 parent
a5c146ec98
commit
0317a44001
2 files changed
+4
-1
No files matched your search
Binary file not shown.
+4
-1
@@ -287,9 +287,12 @@ bool BatchStore::record_talenan_crossing(int track_id) {
|
|||||||
duration_sec = std::chrono::duration_cast<std::chrono::seconds>(end_tp - start_tp).count();
|
duration_sec = std::chrono::duration_cast<std::chrono::seconds>(end_tp - start_tp).count();
|
||||||
}
|
}
|
||||||
std::ostringstream msg;
|
std::ostringstream msg;
|
||||||
msg << "Batch closed by talenan crossing"
|
int bn = current_state_["batch_number"].get<int>();
|
||||||
|
double cps = duration_sec > 0 ? static_cast<double>(count) / duration_sec : 0.0;
|
||||||
|
msg << "Batch #" << bn << " ended"
|
||||||
<< " | count=" << count
|
<< " | count=" << count
|
||||||
<< " | duration=" << duration_sec << "s"
|
<< " | duration=" << duration_sec << "s"
|
||||||
|
<< " | cps=" << std::fixed << std::setprecision(2) << cps
|
||||||
<< " | start=" << start_time
|
<< " | start=" << start_time
|
||||||
<< " | end=" << end_time;
|
<< " | end=" << end_time;
|
||||||
logger_(msg.str());
|
logger_(msg.str());
|
||||||
|
|||||||
Reference in new issue
Block a user