Skip to content

Commit

Permalink
Update Loop::now() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 12, 2018
1 parent 7075ef7 commit 216315e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/event-loop/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The event loop can be stopped at any time while running. When `Loop::stop()` is

## `now()`

Returns the current 'loop time' in millisecond increments. The value returned by this method does not necessarily correlate to wall-clock time, rather the value is meant to be used in relative comparisons to prior values returned by this method (e.g.: interval calculations, expiration times, etc.). The value returned by this method is only updated once per loop tick. This method is a faster alternative to `time()` and `microtime()`, which require a system call.
Returns the current 'loop time' in millisecond increments. The value returned by this method does not necessarily correlate to wall-clock time, rather the value is meant to be used in relative comparisons to prior values returned by this method (e.g.: interval calculations, expiration times, etc.). The value returned by this method is only updated once per loop tick.

## Timer Watchers

Expand Down

0 comments on commit 216315e

Please sign in to comment.