Closed SurmanPP closed 3 years ago
This code is invalid :\ You can't wrap the value into a constant, if they were aliases then maybe that would be the solution, but no. I have already written in the review the values of the arguments to be used
the constants in the "time" package are u64 values, so simply multiplying them by a number will be enough.
By multiplying 5 by time.second we get exactly 5 seconds
I used the functions from the time package to do this
time.seconds(5) returns the seconds converted to nanoseconds
I used the functions from the time package to do this
There is no such functions :\
Only constants with that name in that module
https://github.com/vlang/v/blob/1a8e502e2c6f87ce4dd07df566cb1f891021ccf0/vlib/time/time.v#L412 There is the seconds function I don't know why it does not work
https://github.com/vlang/v/blob/1a8e502e2c6f87ce4dd07df566cb1f891021ccf0/vlib/time/time.v#L412 There is the seconds function I don't know why it does not work
It's for Duration type :\
Ups
I changed to constants in the latest commit
Yes, thanks)
time.sleep_ms is deprecated replace with wait