aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-05-11 04:24:56 +0200
committerSven Göthel <[email protected]>2024-05-11 04:24:56 +0200
commita300f90f0c255c0b7c78466b57cf144195c4d016 (patch)
tree1e2a73771511004822a74c37e566b4478d2190d4 /include
parent53ec39486355fa607eb6484f2bbc2fb8e0b9b08e (diff)
debug: Fix fprintf_td(): Use stream arg for elapsed_md portion (not stderr); Add fprintf_td() variant with given elapsed_ms argument
Diffstat (limited to 'include')
-rw-r--r--include/jau/debug.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/jau/debug.hpp b/include/jau/debug.hpp
index 84ab123..4626023 100644
--- a/include/jau/debug.hpp
+++ b/include/jau/debug.hpp
@@ -129,6 +129,15 @@ namespace jau {
void PLAIN_PRINT(const bool printPrefix, const char * format, ...) noexcept;
/**
+ * Convenient fprintf() invocation, prepending the given elapsed_ms timestamp.
+ * @param elapsed_ms the given elapsed time in milliseconds
+ * @param stream the output stream
+ * @param format the format
+ * @param args the optional arguments
+ */
+ int fprintf_td(const uint64_t elapsed_ms, FILE* stream, const char * format, ...) noexcept;
+
+ /**
* Convenient fprintf() invocation, prepending the environment::getElapsedMillisecond() timestamp.
* @param stream the output stream
* @param format the format