bjonnh
03/07/2019, 7:40 PMSteven McLaughlin
03/07/2019, 7:49 PM.nano is returning something different than what you're expecting. This is the documentation for the function:
Gets the number of nanoseconds within the second in this duration.
The length of the duration is stored using two fields - seconds and nanoseconds. The nanoseconds part is a value from 0 to 999,999,999 that is an adjustment to the length in seconds. The total duration is defined by calling this method and getSeconds().Steven McLaughlin
03/07/2019, 7:50 PMDico
03/08/2019, 4:53 AMLocalDateTime api to measure this at all. Use System.currentTimeMillis() or use kotlin.system.measureTimeMillis { runBlocking { ... } }bjonnh
03/08/2019, 10:49 PM