Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<DateMalformedStringExceptionInstalling/Configuring>
^Date and Time Related ExtensionsLast updated: Mon, 26 Oct 2026

High resolution timing

Introduction

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

Note:

As of PHP 7.3.0 the related function hrtime() is part of the core.


<DateMalformedStringExceptionInstalling/Configuring>
^Date and Time Related ExtensionsLast updated: Mon, 26 Oct 2026