hrtime 0.6.0

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.

License: BSD

Changes

- 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()