libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::ITimer Class Referenceabstract

The ITimer interface represents a timer of a Scratch project. More...

#include <scratchcpp/itimer.h>

Public Member Functions

virtual ~ITimer ()
 
virtual double value () const =0
 
virtual void reset ()=0
 

Detailed Description

The ITimer interface represents a timer of a Scratch project.

You can get a project timer using Engine#timer().

Constructor & Destructor Documentation

◆ ~ITimer()

virtual libscratchcpp::ITimer::~ITimer ( )
inlinevirtual

Member Function Documentation

◆ reset()

virtual void libscratchcpp::ITimer::reset ( )
pure virtual

Resets the timer.

◆ value()

virtual double libscratchcpp::ITimer::value ( ) const
pure virtual

Returns the time since last reset in seconds.


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