hrtime

This extension appears to no longer be maintained. If you want to create this for Windows, contact us.
No replacement provided. Contact us if you know a replacement.

High resolution timing

The extension implements a high resolution StopWatch class. It uses the the best possible APIs on different platforms. It also makes possible to implement a custom stopwatch using low level ticks delivered by the underlaying APIs.

Maintainer

  • Anatoliy Belsky (lead )

Details

Stars: 3
Downloads: 51384
0.6.0
7 years ago
Download DLL for processor with 64 bits architecture (x64)
PHP 7.4
Loading...
PHP 7.3
Loading...
PHP 7.2
Loading...
PHP 7.1
Loading...
PHP 7.0
Loading...
PHP 5.6
Loading...
PHP 5.5
Loading...
Download DLL for processor with 32 bits architecture (x86)
PHP 7.4
Loading...
PHP 7.3
Loading...
PHP 7.2
Loading...
PHP 7.1
Loading...
PHP 7.0
Loading...
PHP 5.6
Loading...
PHP 5.5
Loading...
Version 0.6.0 change log


- Major refactoring of the class structure, as described below
- HRTime\PerformanceCounter::getFrequency() is now static
- add HRTime\PerformanceCounter::getTicks()
- add HRTime\PerformanceCounter::getTicksSince()
- moved HRTime\PerformanceCounter::start() to HRTime\StopWatch::start()
- moved HRTime\PerformanceCounter::stop() to HRTime\StopWatch::stop()
- moved HRTime\PerformanceCounter::getElapsedTicks() to HRTime\StopWatch::getElapsedTicks()
- moved HRTime\PerformanceCounter::getLastElapsedTicks() to HRTime\StopWatch::getLastElapsedTicks()
- moved HRTime\PerformanceCounter::isRunning() to HRTime\StopWatch::isRunning()

requires:

  • php >=5.3
  • pearinstaller >=1.4.0