WPDev.one
Core Function
View Source on Trac ↗

timer_stop()

timer_stop( mixed $display = 0, mixed $precision = 3 )

Retrieves or displays the time from the page start to when function is called.

Parameters 2 required

Name / Type Description
mixed

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

Required
int

$precision The number of digits from the right of the decimal to display. Default 3.

Required

Return Value

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

Function Information

Since Version
0.71
Source File
wp-includes/load.php
Advertisement