12 lines
257 B
C++
12 lines
257 B
C++
|
|
#pragma once
|
||
|
|
class ClockIterator {
|
||
|
|
private:
|
||
|
|
unsigned int max;
|
||
|
|
unsigned int counter;
|
||
|
|
public:
|
||
|
|
ClockIterator(unsigned int loopMillis);
|
||
|
|
unsigned int step(unsigned int millis);
|
||
|
|
float getPercentage();
|
||
|
|
unsigned int getPosition();
|
||
|
|
void reset();
|
||
|
|
};
|