Nebulex.Time (Nebulex v3.0.0-rc.1)
View SourceTime utilities.
Summary
Functions
Returns the current system time in the given time unit.
Functions
@spec now(System.time_unit()) :: integer()
Returns the current system time in the given time unit.
The unit
is set to :millisecond
by default.
Examples
iex> now = Nebulex.Time.now()
iex> is_integer(now) and now > 0
true