current_time
Returns the current logical time. This is a ‘wall-clock’ time which should typically be pretty similar to Time.now but quantised to a nearby sleep point in the thread. May be quite different to Time.now within a time_warp!
Unlike Time.now
, Multiple calls to current_time
with no interleaved calls to sleep
or sync
will return the same value.
Introduced in v3.0
# Example 1 | |
|
|
# Example 2 | |
|
|