//! BEAM time functions.
//!
//! Wraps `enif_monotonic_time`, `enif_time_offset`, and
//! `enif_convert_time_unit`.
/// A BEAM time value, in the [`TimeUnit`] it was produced with. Re-exported from
/// `enif_ffi`.
pub use Time;
/// The unit a [`Time`] value is expressed in (`ErlNifTimeUnit` — seconds,
/// milliseconds, microseconds, nanoseconds). Re-exported from `enif_ffi`.
pub use TimeUnit;
/// Return the current BEAM monotonic time in the given unit.
///
/// Wraps `enif_monotonic_time`.
/// Return the current BEAM time offset in the given unit.
///
/// `monotonic_time + time_offset = system_time` (Erlang system time).
///
/// Wraps `enif_time_offset`.
/// Convert a time value from one unit to another.
///
/// Wraps `enif_convert_time_unit`.