← All docs

hrtime()

Returns the current high-resolution time.

hrtime()

function hrtime(bool $as_number = false): mixed

Returns the current high-resolution time.

Parameters:

  • $as_number (bool), default false, optional

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how hrtime is implemented in the compiler, see the internals page.