timer_start()WP 0.71

Start the WordPress micro-timer.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

1 time — 0.000015 sec (very fast) | 50000 times — 0.02 sec (speed of light)

No Hooks.

Return

true|false. Always returns true.

Usage

timer_start();

Examples

0

#1 It's internal function

This function is called by WP itself and it makes no sense to show an example of how it works.

See examples of timer_stop(), which works in conjunction with this function.

Notes

  • Global. float. $timestart Unix timestamp set at the beginning of the page load.
  • See: timer_stop()

Changelog

Since 0.71 Introduced.

timer_start() code WP 6.7.1

function timer_start() {
	global $timestart;

	$timestart = microtime( true );

	return true;
}