Login   Register  
PHP Classes
elePHPant
Icontem

File: chrono.readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ariel Filipiak  >  Chrono Class  >  chrono.readme.txt  >  Download  
File: chrono.readme.txt
Role: ???
Content type: text/plain
Description: Instructions to use and options
Class: Chrono Class
Take the duration of script or script intervals.
Author: By
Last change:
Date: 12 years ago
Size: 1,157 bytes
 

Contents

Class file image Download
------------------------------------------------------------------------------------
                                    CLASS CHRONO
------------------------------------------------------------------------------------
NEW CHRONO

    $o_chrono = new chrono([format default = "%01.3f"]);   

START CHRONO

    $o_chrono->start();         First time not needed - Constructor start chrono.
    
MARK MEMORY

    $o_chrono->mem(ID);         Put the time in Mem with id=ID.

LOOK LAP

    $o_chrono->lap();           Take time, chrono must be running, else error.
    $o_chrono->lap([ID]);       Take time from ID.

GET MEMORY

    $o_chrono->getmem();        Return number of marks in memory.
                                Push ID's in  $o_chrono->memkey array
                                Push lap's in $o_chrono->memlap array
                                (If $o_chrono->memlap[..] = ERR)

STOP CHRONO

    $o_chrono->stop();          Stop and Temporary stop (Pause - Start to continue).
                                Chrono must be running.

RESTART CHRONO

    $o_chrono->restart();       Start again from zero.