Back to Profiler class

Method setStart

public $this
setStart
(mixed $startTime = 0.0, mixed $startMem = 0)
Sets the start time.
Parameters
  • float $startTime Unix timestamp in microseconds for setting the Profiler start time.
  • int $startMem Memory amount in bytes for setting the Profiler start memory.
Returns
  • $this For chaining
Since
  • 3.0.0
Class: Profiler
Project: Joomla

Method setStart - Source code

/**
 * Sets the start time.
 *
 * @param   double  $startTime  Unix timestamp in microseconds for setting the Profiler start time.
 * @param   int     $startMem   Memory amount in bytes for setting the Profiler start memory.
 *
 * @return  $this   For chaining
 *
 * @since   3.0.0
 */
public function setStart($startTime = 0.0, $startMem = 0)
{
    $this->start = (double) $startTime;
    $this->previousMem = (int) $startMem / 1048576;
    return $this;
}