libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
itimer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5namespace libscratchcpp
6{
7
13class ITimer
14{
15 public:
16 virtual ~ITimer() { }
17
19 virtual double value() const = 0;
20
22 virtual void reset() = 0;
23};
24
25} // namespace libscratchcpp
The ITimer interface represents a timer of a Scratch project.
Definition itimer.h:14
virtual double value() const =0
virtual void reset()=0
virtual ~ITimer()
Definition itimer.h:16
The main namespace of the library.
Definition asset.h:10