- added language support (still needs some tweaking, and swedish language file needs correct locale settings)

- removed timer.exc.php and put the needed intializer directly in view.php to get a more accurate reading from $timer->end()
- updated .htaccess settings to they for once work 100% as they should, and added httpd_dlist.conf to respository to keep track of any changes/updates needed to the .htaccess file or apache config file (depending how you implement dList)

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@11 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-04-01 23:24:32 +00:00
parent 05fc88b1d9
commit a8fe6d5a8c
14 changed files with 247 additions and 82 deletions

View File

@@ -4,7 +4,7 @@ class speedometer {
/*
Class: Speedometer v0.1
Class: Speedometer v0.1.1
Created to simplify script execution statistics...
*/
@@ -19,9 +19,10 @@ class speedometer {
$this->start = $this->getmicrotime();
}
function end () {
function end ($digits=false) {
$end = $this->getmicrotime();
return $this->time = number_format( ($end - $this->start), $this->digits);
$digits = ( preg_match("/[0-9]{1,2}/", $digits) ) ? $digits : $this->digits ;
return $this->time = number_format( ($end - $this->start), $digits);
}
function getmicrotime () {