<?php

$start = getmicrotime();

define('FULL_PATH', realpath(dirname(__FILE__)));
define('APPLICATION_CLASS', 'MyApplication');
include_once(FULL_PATH.'/kernel/kernel4/startup.php');

$application =& kApplication::Instance();
$application->Init();
$application->Run();
$application->Done();

/*$application->Debugger->appendHTML('Objects if kDBItem, kDBList class created (<b>'.count($application->APCalled).'</b>):');
print_pre($application->APCalled);*/

$end = getmicrotime();

//print_pre(get_included_files());

function getmicrotime() 
{ 
    list($usec, $sec) = explode(" ", microtime()); 
    return ((float)$usec + (float)$sec); 
} 
?>