timer_stop

SummerySummery

Retrieve or display the time from the page start to when function is called.

Syntax

timer_stop( int|bool $display, int $precision = 3 )

ParametersParameters

$display

(int|bool) (Required) Whether to echo or return the results. Accepts 0|false for return, 1|true for echo. Default 0|false.

$precision

(int) (Optional) The number of digits from the right of the decimal to display.

Default value: 3

ReturnReturn

(string) The "second.microsecond" finished time calculation. The number is formatted for human consumption, both localized and rounded.

SourceSource

File: wp-includes/load.php


			

ChangelogChangelog

Changelog
Version Description
0.71 Introduced.
Scroll to Top