Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jan 7, 2021
1 parent f586e4c commit 9bdb793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klock/src/commonMain/kotlin/com/soywiz/klock/Measure.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ inline fun measureTime(callback: () -> Unit): TimeSpan {
}

/**
* Executes a [callback] measuring the time it takes to complete.
* Returns a [TimedResult] with the time and the returning value of the callback.
* Executes the [callback] measuring the time it takes to complete.
* Returns a [TimedResult] with the time and the return value of the callback.
*/
inline fun <T> measureTimeWithResult(callback: () -> T): TimedResult<T> {
val start = PerformanceCounter.microseconds
Expand Down

0 comments on commit 9bdb793

Please sign in to comment.