From 086501a1b0e397808fbeb21fd87cf2c1492bfdc7 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 28 Jun 2026 17:11:25 -0700 Subject: [PATCH] pvxmonitor show dis/connect time --- tools/monitor.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/monitor.cpp b/tools/monitor.cpp index 0aa1e4c..6af5897 100644 --- a/tools/monitor.cpp +++ b/tools/monitor.cpp @@ -13,12 +13,25 @@ #include #include #include +#include #include #include #include "utilpvt.h" #include "evhelper.h" +#if EPICS_VERSION_INT < VERSION_INT(7, 0, 6, 1) +static inline + std::ostream& operator<<(std::ostream& strm, const epicsTime& ts) +{ + char temp[64]; + + (void)ts.strftime(temp, sizeof(temp), "%Y-%m-%d %H:%M:%S.%09f"); + temp[sizeof(temp)-1u] = '\0'; + return strm<stats(stats); @@ -160,7 +173,7 @@ int main(int argc, char *argv[]) } }catch(client::Disconnect& conn) { - std::cerr<