0b7e2d0a5b
- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
29 lines
807 B
PHP
29 lines
807 B
PHP
<?php
|
|
class VPerformance {
|
|
private static $start_time;
|
|
private static $queries = 0;
|
|
|
|
public static function start() {
|
|
self::$start_time = microtime(true);
|
|
}
|
|
|
|
public static function end() {
|
|
$end_time = microtime(true);
|
|
$execution_time = ($end_time - self::$start_time) * 1000;
|
|
|
|
if (isset($_GET['debug'])) {
|
|
echo "<div style=\"position:fixed;bottom:0;right:0;background:#000;color:#fff;padding:10px;z-index:9999;\">
|
|
Execution: {$execution_time}ms | Queries: " . self::$queries . "
|
|
</div>";
|
|
}
|
|
}
|
|
|
|
public static function logQuery() {
|
|
self::$queries++;
|
|
}
|
|
}
|
|
|
|
// Auto-start performance monitoring
|
|
VPerformance::start();
|
|
register_shutdown_function(['VPerformance', 'end']);
|
|
?>
|