gettimeofday()
function gettimeofday(bool $as_float = false): mixed
Returns the current time as an array of parts, or as a float.
Parameters:
$as_float(bool), defaultfalse, optional
Returns: mixed
Availability
- Compiled (AOT): supported through the Elephc compiler.
eval()(magician interpreter): supported through the procedural date/time alias dispatcher.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how gettimeofday is implemented in the compiler, see the internals page.