Anatol Belski 53fed8cf2c compat: Remove TSRMLS_CC occurrences
git-svn-id: http://svn.php.net/repository/pecl/hrtime/trunk@352308 c90b9560-bf6c-de11-be94-00142212c4b1
2021-01-17 21:07:36 +00:00
2014-04-18 16:08:25 +00:00
2014-04-22 12:12:44 +00:00
2014-04-18 16:05:52 +00:00
2014-04-18 16:05:52 +00:00
2021-01-17 21:07:36 +00:00
2014-04-18 16:09:16 +00:00
2017-01-05 21:35:18 +00:00
2017-01-05 21:19:42 +00:00
2014-04-18 16:05:52 +00:00
2014-04-18 16:05:52 +00:00
2014-04-22 12:12:44 +00:00

High resolution timer for PHP

This PHP extension brings the possibility to use a high resolution timer from the user land PHP scripts. The best available APIs are used on differend platforms to achieve this goal.

Synopsis


	$c = new HRTime\StopWatch;

	$c->start();
	/* do some interesting stuff*/
	$c->stop();
	$elapsed0 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND);

	/* do something else */

	$c->start();
	/* do some interesting stuff again */
	$c->stop();
	$elapsed1 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND);

	$elapsed_total = $c->getElapsedTime(HRTime\Unit::NANOSECOND);
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:22:23.216Z
Readme BSD-2-Clause 71 KiB
Languages
C 63.2%
PHP 35.3%
M4 1%
JavaScript 0.5%