ForwardFW
[ class tree: ForwardFW ] [ index: ForwardFW ] [ all elements ]

Class: ForwardFW_Object_Timer

Source Location: /Object/Timer.php

Class Overview

ForwardFW_Object
   |
   --ForwardFW_Object_Timer

Model for mesuring time, can add hints with meantime


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: ForwardFW_Object

ForwardFW_Object::__construct()
Constructur
ForwardFW_Object::loadByArray()
Loads the model data out of an array as data set
ForwardFW_Object::saveToArray()
Saves the model data into an array as data set

Class Details

[line 45]
Model for mesuring time, can add hints with meantime



Tags:



[ Top ]


Class Variables

$arEntries = array()

[line 73]

List of informational entries



Tags:

var:  of string
access:  private

Type:   array


[ Top ]

$nTimeStart =  -1

[line 59]

Start time of this timer, microsecond



Tags:

access:  private

Type:   float


[ Top ]

$nTimeStop =  -1

[line 66]

Endtime of this timer, microsecond



Tags:

access:  private

Type:   float


[ Top ]

$strName =  ''

[line 52]

Name of this Timer for output



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


static method getTimeDifference [line 137]

static float getTimeDifference( float $nTimeStart, float $nTimeStop)

Give difference between microtimes in ms.



Tags:

return:  Time in ms.
access:  public


Parameters:

float   $nTimeStart   Starttime for difference
float   $nTimeStop   Endtime for difference

[ Top ]

constructor __construct [line 82]

void __construct( [string $strName = ''])

Starts the timer



Tags:

access:  public


Overrides ForwardFW_Object::__construct() (Constructur)

Parameters:

string   $strName   Name to identify Timer on output

[ Top ]

method addEntry [line 110]

ForwardFW_Object_Timer addEntry( string $strEntry)

Adds an entry for information output with elapsed time.



Tags:

access:  public


Parameters:

string   $strEntry   The string to add.

[ Top ]

method getElapsedTime [line 123]

float getElapsedTime( )

Give elapsed time since start of timer



Tags:

return:  Time in ms.
access:  public


[ Top ]

method getEntries [line 182]

array getEntries( )

Gives the array with all entries till yet.



Tags:

return:  of String with entries.


[ Top ]

method getStopTime [line 159]

float getStopTime( )

Gives time between start and stop.



Tags:

return:  Time in ms.
access:  protected


[ Top ]

method reStart [line 94]

ForwardFW_Object_Timer reStart( )

Set new start time and resets entries



Tags:

return:  The timer object
access:  public


[ Top ]

method stop [line 147]

ForwardFW_Object_Timer stop( )

Stops the timer



Tags:

access:  public


[ Top ]

method toString [line 169]

string toString( )

Return execution information



Tags:

return:  execution info
access:  public


[ Top ]


Documentation generated on Sun, 30 Jan 2011 20:46:48 +0100 by phpDocumentor 1.4.3