Basic module

to_microseconds

procedureSource

t in whole microseconds; see to_seconds for the rounding and the success flag.

to_microseconds :: (
    t: Apollo_Time,
    $DO_ROUNDING := false
) -> (result: s64, success: bool)

Parameters

$DO_ROUNDING := false

Returns

result: s64
success: bool
Example↗
us, ok := to_microseconds(milliseconds_to_apollo(1));
assert(ok && us == 1000);

See also