https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

mittapalli hareesh

10/19/2021, 8:15 AM
Hi Guys, May be basic question , Is there any equivalent for
Copy code
System.currentTimeMillis()
in KMM ?
i

iamthevoid

10/19/2021, 8:17 AM
kotlinx-datetime
or write your own with
expect
actual
👍 1
m

mittapalli hareesh

10/19/2021, 8:25 AM
Thanks did it using
expect
 
actual
i need it even for JVM as well so.
g

gildor

10/19/2021, 8:59 AM
need it even for JVM as well so.
Kotlinx-datetime available for JVM too Though, noting wrong with simple expect/actual
i

ilya.gorbunov

10/19/2021, 5:55 PM
What do you need this function for, by the way? Measuring time intervals or timestamping events?
5 Views