Overview

Namespaces

  • Yep
    • Stopwatch

Classes

  • Event
  • Formatter
  • Lap
  • Manager
  • Stopwatch

Exceptions

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

Class Stopwatch

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

Returns the stopwatch name

Returns the stopwatch name

Returns

null|string
public Yep\Stopwatch\Event
# start( string $name, null|string $group = null )

Starts the new lap in the event

Starts the new lap in the event

Parameters

$name
$group

Returns

Yep\Stopwatch\Event
public Yep\Stopwatch\Event
# stop( string $name )

Stops the latest lap in the event

Stops the latest lap in the event

Parameters

$name

Returns

Yep\Stopwatch\Event
public Yep\Stopwatch\Event
# lap( string $name )

Stops the latest lap in the event and star new one

Stops the latest lap in the event and star new one

Parameters

$name

Returns

Yep\Stopwatch\Event
public Yep\Stopwatch\Event
# getEvent( string $name )

Returns exists

Returns exists

Parameters

$name

Returns

Yep\Stopwatch\Event

Throws

Yep\Stopwatch\StopwatchEventDoesntExistException
public Yep\Stopwatch\Event[]
# getEvents( )

Returns the stopwatch events

Returns the stopwatch events

Returns

Yep\Stopwatch\Event[]
Properties summary
protected null|string $name
#
protected Yep\Stopwatch\Event[] $events
# []
API documentation generated by ApiGen