From a86a77e0b9d2b689d50f13c6d1e46460dbf511a8 Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Sun, 5 Jan 2025 03:04:35 +0000 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++-- include/quill/StopWatch.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 997fc98b..fe4d61d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,14 +90,16 @@ - Removed `JsonFileSinkConfig`. Please rename it to `FileSinkConfig`, which retains the same API and is fully compatible. - Added `RotatingJsonFileSink`. Functions like `RotatingFileSink`, but specifically designed for rotating JSON log - files. + files. ([#637](https://github.com/odygrd/quill/issues/637)) - Simplified `ConsoleSink` by applying ANSI colour codes universally across all platforms, including Windows. The previous Windows-specific implementation has been removed. Note that `quill::ConsoleColours` has been replaced with `quill::ConsoleSink::Colours`, and `quill::ConsoleColours::ColourMode` has been renamed to `quill::ConsoleSink::ColourMode`. - Added a `StopWatch` utility for easy logging of elapsed time. It can log the time elapsed since construction in various formats. You can use either `quill::StopWatchTsc` for high-resolution TSC-based timing or - `quill::StopWatchChrono` for standard std::chrono-based timing. + `quill::StopWatchChrono` for standard std::chrono-based timing. ([#640](https://github.com/odygrd/quill/issues/640)) + + For example: ```c++ #include "quill/StopWatch.h" diff --git a/include/quill/StopWatch.h b/include/quill/StopWatch.h index a1a33c56..3a274099 100644 --- a/include/quill/StopWatch.h +++ b/include/quill/StopWatch.h @@ -25,7 +25,7 @@ namespace detail * A stopwatch utility for measuring elapsed time since construction. * * Displays elapsed time as seconds (double) or any specified duration type. - * + * * Can use either TSC-based or system clock-based timing, depending on the * template parameter `ClockType`. *