- microtime: documentation ( source)
- round: documentation ( source)
- explode: documentation ( source)
<?php
function chrono()
{
$temps = explode(' ', microtime());
return $temps[0]+$temps[1];
}
$debut = chrono();
$bcrypt = new Bcrypt(15);
for($i=0;$i<10;$i++) {
$p = $bcrypt->hash('toto');
}
echo'<hr>';
echo round(chrono()-$debut,10);