HRTime\StopWatch::getLastElapsedTime

(PECL hrtime >= 0.4.3) Get elapsed time for the last interval. public float HRTime\StopWatch::getLastElapsedTime ([ integer $unit ] ) Get elapsed time for the previously closed interval. Parameters: unit Time unit represented by a HRTime\Unit constant. Default is HRTime\Unit::SECOND. Returns: Returns float indicating elapsed time.

dio_open

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Opens a file (creating it if necessary) at a lower level than the C library input/ouput stream functions allow. resource dio_open ( string $filename, int $flags [, int $mode = 0 ] ) dio_open() opens a file and returns a new file descriptor for it. Parameters: filename The pathname of the file to open.

dio_close

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Closes the file descriptor given by fd void dio_close ( resource $fd ) The function dio_close() closes the file descriptor fd. Parameters: fd The file descriptor returned by dio_open(). Returns: No value is returned. Examples: Closing an

dio_read

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Reads bytes from a file descriptor string dio_read ( resource $fd [, int $len = 1024 ] ) The function dio_read() reads and returns len bytes from file with descriptor fd. Parameters: fd The file descriptor returned by dio_open(). len The number of bytes to read. If not specified, dio_read()

HRTime\PerformanceCounter::getElapsedTicks

(PECL hrtime >= 0.4.3) Get elapsed ticks for all intervals. public int HRTime\PerformanceCounter::getElapsedTicks ( void ) Get elapsed ticks for all the previously closed intervals. Returns: Returns integer indicating elapsed ticks.

HRTime\PerformanceCounter::start

(PECL hrtime >= 0.4.3) Start time measurement public void HRTime\PerformanceCounter::start ( void ) Starts the time measurement. It has no effect if the measurement was already started. The measurement will be continued if it was previously stopped. Returns: Returns void.

HRTime\PerformanceCounter::stop

(PECL hrtime >= 0.4.3) Stop time measurement public void HRTime\PerformanceCounter::stop ( void ) Stop the time measurement for the previously started interval. Returns: Returns void.

HRTime\PerformanceCounter::getLastElapsedTicks

(PECL hrtime >= 0.4.3) Get elapsed ticks for the last interval. public int HRTime\PerformanceCounter::getLastElapsedTicks ( void ) Get elapsed ticks for the previously closed interval. Returns: Returns integer indicating elapsed ticks.

HRTime\PerformanceCounter::getFrequency

(PECL hrtime >= 0.4.3) Timer frequency in ticks per second public int HRTime\PerformanceCounter::getFrequency ( void ) Returns the timer frequency in ticks per second. This value is constant after the system start on almost any operating system. Returns: Returns integer indicating the timer frequency.

HRTime\PerformanceCounter::isRunning

(PECL hrtime >= 0.4.3) Whether the measurement is running. public bool HRTime\PerformanceCounter::isRunning ( void ) Reveals whether the measurement was started. Returns: Returns boolean indicating whetehr the measurement is running.