From 7b0a9368977052753f5acc124e10011100c12463 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 4 Oct 2020 21:58:40 +0200 Subject: [PATCH] Added logElapsedTime(String) --- .../kotlin/net/dankito/utils/multiplatform/Stopwatch.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/Stopwatch.kt b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/Stopwatch.kt index e7eaf3ec..48ddd2e6 100644 --- a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/Stopwatch.kt +++ b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/Stopwatch.kt @@ -151,6 +151,10 @@ open class Stopwatch(createStarted: Boolean = true) { } } + open fun logElapsedTime(loggedAction: String) { + logElapsedTime(loggedAction, log) + } + open fun logElapsedTime(loggedAction: String, logger: Logger) { val formattedElapsedTime = formatElapsedTime()