Skip to content

Commit

Permalink
Added declaration of KOHANA_START_* to base.php, if not already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Nov 2, 2009
1 parent 8579a1c commit c6122c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<?php defined('SYSPATH') or die('No direct script access.');

if ( ! defined('KOHANA_START_TIME'))
{
/**
* Define the start time of the application, used for profiling.
*/
define('KOHANA_START_TIME', microtime(TRUE));
}

if ( ! defined('KOHANA_START_MEMORY'))
{
/**
* Define the memory usage at the start of the application, used for profiling.
*/
define('KOHANA_START_MEMORY', memory_get_usage());
}

/**
* Kohana translation/internationalization function.
*
Expand Down

0 comments on commit c6122c0

Please sign in to comment.