From c06bafb0b2e551c56a8adaf113cfd8a865772e4a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 19 Apr 2021 14:41:24 +0300 Subject: [PATCH] r2t2 : print duration --- examples/r2t2/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/r2t2/main.cpp b/examples/r2t2/main.cpp index cd59714..0d8013c 100644 --- a/examples/r2t2/main.cpp +++ b/examples/r2t2/main.cpp @@ -66,8 +66,18 @@ int main(int argc, char** argv) { printf("Available Tx protocols:\n"); for (const auto & protocol : protocols) { - printf(" -t%d : %s\n", protocol.first, protocol.second.name); + printf(" -t%-2d : %-16s", protocol.first, protocol.second.name); + if (protocol.first == GGWAVE_TX_PROTOCOL_CUSTOM_0) { + printf(" (8.5 sec)\n"); + } else if (protocol.first == GGWAVE_TX_PROTOCOL_CUSTOM_1) { + printf(" (5.7 sec)\n"); + } else if (protocol.first == GGWAVE_TX_PROTOCOL_CUSTOM_2) { + printf(" (2.9 sec)\n"); + } else { + printf("\n"); + } } + printf("\n"); if (protocols.find(GGWave::TxProtocolId(txProtocolId)) == protocols.end()) { fprintf(stderr, "Unknown Tx protocol %d\n", txProtocolId);