Skip to content

Commit 745fd9a

Browse files
committed
stream parity maybe
1 parent a750708 commit 745fd9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MIDAS/src/hilsim/stream/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ int main(int argc, char** argv) {
422422

423423
while (true) {
424424
current_time = std::chrono::high_resolution_clock::now();
425-
426425
auto duration = current_time - start_time;
427426
millis = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
428427

@@ -431,6 +430,10 @@ int main(int argc, char** argv) {
431430
num_read++;
432431
cur_entry_time = entry.ts;
433432

433+
current_time = std::chrono::high_resolution_clock::now();
434+
duration = current_time - start_time;
435+
millis = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
436+
434437
auto latency = millis - (cur_entry_time - first_entry_time);
435438
printf(".r %i\n", latency);
436439
fflush(stdout);

0 commit comments

Comments
 (0)