PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PTimer Class Referenceabstract

#include <PTimer.h>

Inheritance diagram for PTimer:
PDevice PlatformTimer PlatformTimer

Public Member Functions

 PTimer ()
 The Standard constructor.
 
virtual ~PTimer ()
 The Standard destructor.
 
virtual void Wait (unsigned long int msecs)=0
 
virtual void Sleep (unsigned long int msecs)=0
 
virtual unsigned long int GetTime () const =0
 
virtual void GetTimeOfDay (unsigned long &secs, unsigned long &msecs)=0
 
virtual int GetState (int iface) const =0
 
virtual PEBL_DEVICE_TYPE GetDeviceType ()
 
- Public Member Functions inherited from PDevice
 PDevice ()
 The Standard constructor.
 
virtual ~PDevice ()
 The Standard destructor.
 

Detailed Description

This device is the generic interface for two types of platform functions: Querying the actual time, in msec, since the program started (which will wrap after a while) and waiting a specified period of time. It is an abstract base class, and needs to be inherited and implemented on a specific platform to be of any use.

Definition at line 40 of file PTimer.h.

Constructor & Destructor Documentation

◆ PTimer()

PTimer::PTimer ( )

The Standard constructor.

This is the standard PTimer constructor.

Definition at line 35 of file PTimer.cpp.

36{
37
38}

◆ ~PTimer()

PTimer::~PTimer ( )
virtual

The Standard destructor.

This is the standard pNode destructor.

Definition at line 41 of file PTimer.cpp.

42{
43 // Standard Destructor
44}

Member Function Documentation

◆ GetDeviceType()

virtual PEBL_DEVICE_TYPE PTimer::GetDeviceType ( )
inlinevirtual

Reimplemented from PDevice.

Definition at line 55 of file PTimer.h.

55{return PDT_TIMER;};
@ PDT_TIMER
Definition PDevice.h:48

References PDT_TIMER.

◆ GetState()

virtual int PTimer::GetState ( int  iface) const
pure virtual

Reimplemented from PDevice.

Implemented in PlatformTimer, and PlatformTimer.

◆ GetTime()

virtual unsigned long int PTimer::GetTime ( ) const
pure virtual

Implemented in PlatformTimer, and PlatformTimer.

◆ GetTimeOfDay()

virtual void PTimer::GetTimeOfDay ( unsigned long &  secs,
unsigned long &  msecs 
)
pure virtual

Implemented in PlatformTimer, and PlatformTimer.

◆ Sleep()

virtual void PTimer::Sleep ( unsigned long int  msecs)
pure virtual

Implemented in PlatformTimer, and PlatformTimer.

◆ Wait()

virtual void PTimer::Wait ( unsigned long int  msecs)
pure virtual

Implemented in PlatformTimer, and PlatformTimer.


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