- microtime: documentation ( source)
- sleep: documentation ( source)
- number_format: documentation ( source)
<?php
$start = microtime(true);
sleep(1);
$ende = microtime(true);
$dauer = $ende - $start;
echo "One Second is " . number_format($dauer, 2) . " seconds";