HuyPV
Wednesday, October 21, 2009
function friendlyTime($elapsed) {
$milisecond = floor(($elapsed-floor($elapsed))*1000);
$elapsed = floor($elapsed);
$second = $elapsed % 60;
$elapsed = floor($elapsed/60);
$minute = $elapsed % 60;
$elapsed = floor($elapsed/60);
$hour = $elapsed % 60;
return sprintf("%02d:%02d:%02d/%03d ms", $hour,$minute,$second,$milisecond);
}
Title:
Function show time friendly
Description:
function friendlyTime($elapsed) { $milisecond = floor(($elapsed-floor($elapsed))*1000); $elapsed = floor($elapsed); $second...
...
Rating:
4