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

Class: NS_Timer

Source Location: /nanoserv.php

Class Overview


Timer class


Author(s):

Variables

Methods



Class Details

[line 782]
Timer class

Do not instanciate NS_Timer but use the Nanoserv::New_Timer() method instead




Tags:

since:  0.9


[ Top ]


Class Variables

$active =  true

[line 800]

Timer status



Tags:

access:  public

Type:   bool


[ Top ]

$callback =

[line 794]

Timer callback



Tags:

access:  public

Type:   mixed


[ Top ]

$microtime =

[line 788]

System time for timer activation



Tags:

access:  public

Type:   float


[ Top ]



Class Methods


constructor __construct [line 810]

NS_Timer __construct( float $time, mixed $callback)

NS_Timer constructor



Tags:

see:  Nanoserv::New_Timer()
since:  0.9
access:  public


Parameters:

float   $time  
mixed   $callback  

[ Top ]

method Activate [line 824]

void Activate( )

Activate timer

Timers are activated by default, and Activate should only be used after a call do Deactivate()




Tags:

see:  NS_Timer::Deactivate()
access:  public


[ Top ]

method Deactivate [line 833]

void Deactivate( )

Deactivate timer



Tags:

access:  public


[ Top ]


Documentation generated on Thu, 10 May 2012 22:01:24 +0200 by phpDocumentor 1.4.4