microtime()
function microtime(bool $as_float = false): mixed
Returns the current Unix timestamp with microseconds.
Parameters:
$as_float(bool), defaultfalse, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/time/microtime.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how microtime is implemented in the compiler, see the internals page.