X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=print_latency.cpp;h=72440ae0fe41a3ec13df76c595450ca409090aec;hb=9e47a2f661b9d292598ef0277e507458e3dad62f;hp=af199856e4d1c34935486584282552c7aa5fc0d9;hpb=9672da324b767feb716fe32c1ef961881aa97cfd;p=nageru diff --git a/print_latency.cpp b/print_latency.cpp index af19985..72440ae 100644 --- a/print_latency.cpp +++ b/print_latency.cpp @@ -74,7 +74,7 @@ void LatencyHistogram::init(const string &measuring_point) } } -void print_latency(const string &header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram) +void print_latency(const char *header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram) { if (received_ts.ts.empty()) return; @@ -120,7 +120,7 @@ void print_latency(const string &header, const ReceivedTimestamps &received_ts, duration highest_latency = now - min_ts; printf("%-60s %4.0f ms (lowest-latency input), %4.0f ms (highest-latency input)", - header.c_str(), 1e3 * lowest_latency.count(), 1e3 * highest_latency.count()); + header, 1e3 * lowest_latency.count(), 1e3 * highest_latency.count()); if (is_b_frame) { printf(" [on B-frame; potential extra latency]\n");