Overview

Namespaces

  • Yep
    • Stopwatch

Classes

  • Event
  • Formatter
  • Lap
  • Manager
  • Stopwatch

Exceptions

  • StopwatchAlreadyExistsException
  • StopwatchDoesntExistException
  • StopwatchEventDoesntExistException
  • StopwatchLapNotStartedException
  • Overview
  • Namespace
  • Class

Class Event

Namespace: Yep\Stopwatch
Located at Event.php
Methods summary
public
# __construct( string $name, null|string $group = null )

Event constructor

Event constructor

Parameters

$name
$group
public string
# getName( )

Returns the event name

Returns the event name

Returns

string
public null|string
# getGroup( )

Returns the event group

Returns the event group

Returns

null|string
public Yep\Stopwatch\Event
# startLap( )

Starts new lap in the event

Starts new lap in the event

Returns

Yep\Stopwatch\Event
public Yep\Stopwatch\Event
# stopLap( )

Stops latest lap in the event

Stops latest lap in the event

Returns

Yep\Stopwatch\Event
public
# stopStartedLaps( )

Stops started laps

Stops started laps

public boolean
# hasStartedLaps( )

Returns true if some started lap exists, or false if not

Returns true if some started lap exists, or false if not

Returns

boolean
public integer|float
# getStartTime( )

Returns the start time of the first lap

Returns the start time of the first lap

Returns

integer|float
Time in seconds
public integer|float
# getStopTime( )

Returns the stop time of the last stopped lap

Returns the stop time of the last stopped lap

Returns

integer|float
Time in seconds
public float|integer
# getDuration( )

Returns the duration of all laps durations

Returns the duration of all laps durations

Returns

float|integer
Time in seconds
public integer
# getMemoryUsage( )

Returns the memory usage

Returns the memory usage

Returns

integer
Memory in bytes
public Yep\Stopwatch\Lap[]
# getStoppedLaps( )

Returns the stopped laps

Returns the stopped laps

Returns

Yep\Stopwatch\Lap[]
public float|integer
# getMinDuration( )

Returns the lowest duration of all laps

Returns the lowest duration of all laps

Returns

float|integer
Time in seconds
public float|integer
# getMaxDuration( )

Returns the highest duration of all laps

Returns the highest duration of all laps

Returns

float|integer
Time in seconds
public float|integer
# getAverageDuration( )

Returns the average duration of all laps

Returns the average duration of all laps

Returns

float|integer
Time in seconds
Properties summary
protected $name
#
protected $group
#
protected integer|float $start_time
# 0
protected integer|float $stop_time
# 0
protected integer $memory_usage
# 0
protected array $started_laps
# []
protected Yep\Stopwatch\Lap[] $stopped_laps
# []
API documentation generated by ApiGen