Sam
11/06/2018, 11:02 PMerror: type mismatch: inferred type is ULong but int64_t /* = Long */ was expected
val time = dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_MSEC)
It doesn't like NSEC_PER_MSEC
which is a constant defined in the darwin header. If I just put a literal number in its place it will work fine.thevery
11/06/2018, 11:20 PMmsink
11/07/2018, 1:53 AMNSEC_PER_MSEC.toLong()
works?msink
11/07/2018, 2:02 AM1000000ull
, on linux - just 1000000L
.msink
11/07/2018, 2:10 AMolonho
11/07/2018, 4:58 AMconvert()
in such cases