toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.time
/
Stopwatch
Stopwatch
class
Stopwatch
(
val
nanosecondProvider
:
(
)
->
Double
=
{ PerformanceCounter.nanoseconds }
)
Members
Constructors
Stopwatch
Link copied to clipboard
constructor
(
timeProvider
:
TimeProvider
)
constructor
(
nanosecondProvider
:
(
)
->
Double
=
{ PerformanceCounter.nanoseconds }
)
Properties
elapsed
Link copied to clipboard
val
elapsed
:
TimeSpan
elapsed
Microseconds
Link copied to clipboard
val
elapsedMicroseconds
:
Double
elapsed
Nanoseconds
Link copied to clipboard
val
elapsedNanoseconds
:
Double
nanosecond
Provider
Link copied to clipboard
val
nanosecondProvider
:
(
)
->
Double
Functions
get
Elapsed
And
Restart
Link copied to clipboard
fun
getElapsedAndRestart
(
)
:
TimeSpan
restart
Link copied to clipboard
fun
restart
(
)
:
Stopwatch
start
Link copied to clipboard
fun
start
(
)
:
Stopwatch
stop
Link copied to clipboard
fun
stop
(
)
:
Stopwatch