From 1f11d8ce4d8fa8db001b0eabf070bfae8f52d156 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 22 Jun 2022 18:16:45 +0200 Subject: [PATCH] benchmark() now takes a string benchmark() now takes a message instead of getting the message from __PRETTY_FUNCTION__, since it is more explicit --- src/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.h b/src/utils.h index 6f6cdd3..a14711f 100644 --- a/src/utils.h +++ b/src/utils.h @@ -32,4 +32,4 @@ class __benchmark_impl bool m_InternalBenchmarkingEnabled; }; -#define benchmark() __benchmark_impl __benchmark_impl_timer(__PRETTY_FUNCTION__) \ No newline at end of file +#define benchmark(message) __benchmark_impl __benchmark_impl_timer(message) \ No newline at end of file