LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
okapi::Timer Class Reference

#include <timer.hpp>

Inheritance diagram for okapi::Timer:
okapi::AbstractTimer

Public Member Functions

 Timer ()
 
QTime millis () const override
 Returns the current time in units of QTime.
 
- Public Member Functions inherited from okapi::AbstractTimer
 AbstractTimer (QTime ifirstCalled)
 A Timer base class which implements its methods in terms of millis().
 
virtual ~AbstractTimer ()
 
virtual QTime getDt ()
 Returns the time passed in ms since the previous call of this function.
 
virtual QTime readDt () const
 Returns the time passed in ms since the previous call of getDt().
 
virtual QTime getStartingTime () const
 Returns the time the timer was first constructed.
 
virtual QTime getDtFromStart () const
 Returns the time since the timer was first constructed.
 
virtual void placeMark ()
 Place a time marker.
 
virtual QTime clearMark ()
 Clears the marker.
 
virtual void placeHardMark ()
 Place a hard time marker.
 
virtual QTime clearHardMark ()
 Clears the hard marker.
 
virtual QTime getDtFromMark () const
 Returns the time since the time marker.
 
virtual QTime getDtFromHardMark () const
 Returns the time since the hard time marker.
 
virtual bool repeat (QTime time)
 Returns true when the input time period has passed, then resets.
 
virtual bool repeat (QFrequency frequency)
 Returns true when the input time period has passed, then resets.
 

Additional Inherited Members

- Protected Attributes inherited from okapi::AbstractTimer
QTime firstCalled
 
QTime lastCalled
 
QTime mark
 
QTime hardMark
 
QTime repeatMark
 

Detailed Description

Definition at line 11 of file timer.hpp.

Constructor & Destructor Documentation

◆ Timer()

okapi::Timer::Timer ( )

Member Function Documentation

◆ millis()

QTime okapi::Timer::millis ( ) const
overridevirtual

Returns the current time in units of QTime.

Returns
the current time

Implements okapi::AbstractTimer.


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