diff options
author | Simon Gagne <gags2431@usherbrooke.ca> | 2023-03-21 11:35:43 -0400 |
---|---|---|
committer | Simon Gagne <gags2431@usherbrooke.ca> | 2023-03-21 11:35:43 -0400 |
commit | 73d1b5bdda882a533767e06e75831cc5c9e552a5 (patch) | |
tree | cbe336efcf45c7bb711f84042ade103ca1921fd9 /timestamp.h | |
parent | 24975df8fe3161947f99506e05538b05c05ba3a1 (diff) | |
parent | 1d23034ac50413ed3172bad68c944faf93199dcc (diff) |
Windows compat
Diffstat (limited to 'timestamp.h')
-rw-r--r-- | timestamp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/timestamp.h b/timestamp.h new file mode 100644 index 0000000..b57f5dd --- /dev/null +++ b/timestamp.h @@ -0,0 +1,21 @@ +#ifndef TIMESTAMP_H +#define TIMESTAMP_H + +#include <cstdint> + +class Timestamp{ + public: + Timestamp(long int time, int tick, int nbpm); + int getTime(); + int getTick(); + float getBPM(); + int getNbpm(); // Weird chart formatting (133000 = 133 bpm) + private: + const long int time; // Time in the song in milliseconds + const int tick; // Current tick in the song + const int nbpm; // New BPM to change to +}; + +//#include "timestamp.cpp" +#endif // TIMESTAMP_H +// vim: syntax=cpp.doxygen |