src/Support/Profiler.php
/**
	 * Gets the total time taken so far for a profile. If there isn't any data available for the profile, this will
	 * return `0`.
	 *
	 * @param string $profileName
	 * @return float
	 */
Gets the total time taken so far for a profile. If there isn't any data available for the profile, this will
return `0`.

@param string $profileName
@return float
Gets the total time taken so far for a profile . If there isn ' t any data available for the profile this will return ` 0 ` . @param string $profileName @return float
public static function time($profileName) {
		$total = 0;
		if (isset(static::$totals[$profileName])) {
			$total += static::$totals[$profileName];
		}
		if (isset(static::$active[$profileName])) {
			$profile = static::$active[$profileName];
			$total += static::getTime() - $profile['start'];
		}
		return $total;
	}
public static function time ( $ profileName ) { $ total = 0 ; if ( isset ( static :: $ totals [ $ profileName ] ) ) { $ total += static :: $ totals [ $ profileName ] ; } if ( isset ( static :: $ active [ $ profileName ] ) ) { $ profile = static :: $ active [ $ profileName ] ; $ total += static :: getTime ( ) - $ profile [ 'start' ] ; } return $ total ; }
Gets the total time taken so far for a profile.
Gets the total time taken so far for a profile .
// Add historical totals // Add totals from currently-active profiles