From 7ca54553bb3e6a801982d6778b41ecd535b63d2a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 14 Apr 2024 14:47:35 -0700 Subject: Added realtime clock support, and better timestamping. The realtime clock is not (yet) exposed for user applications, but it is used for logging timestamps accurately. --- src/testing/nuts.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/testing/nuts.h') diff --git a/src/testing/nuts.h b/src/testing/nuts.h index ce75fc66..6321b005 100644 --- a/src/testing/nuts.h +++ b/src/testing/nuts.h @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -203,6 +203,12 @@ extern const char *nuts_client_crt; #define NUTS_PROTO(x, y) (((x) << 4u) | (y)) +#define NUTS_ENABLE_LOG(level) \ + do { \ + nng_log_set_logger(nng_stderr_logger); \ + nng_log_set_level(level); \ + } while (0) + #ifdef __cplusplus }; #endif -- cgit v1.2.3-70-g09d2