ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-13 12:13:26
Editing: StopWatchEvent.php
Cancel
Save Changes
<?php /** * Class StopWatchEvent. * * @package AmpProject\AmpWP */ namespace AmpProject\AmpWP\Instrumentation; /** * Record the timing of a single event. * * @package AmpProject\AmpWP * @since 2.0 * @internal */ final class StopWatchEvent { /** * Start time in milliseconds. * * @var float */ private $start; /** * End time in milliseconds. * * @var float|null */ private $end; /** * StopWatchEvent constructor. */ public function __construct() { $this->start = $this->get_now(); } /** * Stop the event. */ public function stop() { $this->end = $this->get_now(); } /** * Get the duration of the event in milliseconds. * * @return float Duration in milliseconds. */ public function get_duration() { if ( null === $this->end ) { return 0.0; } return $this->end - $this->start; } /** * Get the current time in milliseconds. * * @return float Current time in milliseconds. */ private function get_now() { return microtime( true ) * 1000; } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete