<?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(); /*if ($application->isDebugMode() && !dbg_ConstOn('DBG_SKIP_REPORTING')) { echo ' <br><br> <table class="dbg_stats_table"> <tr> <td>Memory used:</td> <td>'.round(memory_get_usage()/1024/1024, 1).' MB ('.memory_get_usage().')</td> </tr> <tr> <td>Time used:</td> <td>'.round(($end - $start), 5).' sec</td> </tr> </table>'; }*/ //print_pre(get_included_files()); function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } ?>