MarlinUtil  1.12.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SimpleTimer Class Reference

Simple timimg processor, which offers a delay after an event has been processed. More...

#include <SimpleTimer.h>

Inheritance diagram for SimpleTimer:

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 
virtual void processRunHeader (LCRunHeader *run)
 
virtual void processEvent (LCEvent *evt)
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 

Protected Member Functions

void wait (int sleepTime)
 

Protected Attributes

int _nRun
 
int _nEvt
 
int _startTime
 
int _time
 
LCTime * _startTimer
 
LCTime * _currentTimer
 
int _mode
 
int _secondsToWait
 
int _secondsPerEvent
 
int _secondsOfJob
 
int _minutesOfJob
 

Detailed Description

Simple timimg processor, which offers a delay after an event has been processed.

Parameters
SecondsToWait: time to wait (in seconds)
Mode: toggle for two different timing modes
0 - no wait, just display time (in sec.) needed per event and summarise time of processing all events 1 - just wait the time which is specified in the parameter SecondsToWait
2 - calculate the elapsed time since the last call of this processor (e.g. in the last event) and wait for the remaining time (SecondsToWait minus elapsed time). If already more time elapsed than SecondsToWait, carry on without any delay.
Author
O. Wendt (DESY)
Version
Id:
SimpleTimer.h,v 1.5 2006-05-03 14:17:17 owendt Exp

The documentation for this class was generated from the following files: