Added logElapsedTime(String)

This commit is contained in:
dankito 2020-10-04 21:58:40 +02:00
parent b7c760e26e
commit 7b0a936897
1 changed files with 4 additions and 0 deletions

View File

@ -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()