diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-03-21 02:32:05 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-03-21 02:32:05 -0400 |
commit | 1acc49b21d850e035a2517930e6738b873953047 (patch) | |
tree | 7e5e50a4a5848d919d979f46b4383958c7096462 /timestamp.cpp | |
parent | 433faac95e86a4ed61176061c4b0e8451cc58bf5 (diff) |
Manual merge of chartFile branch
Diffstat (limited to 'timestamp.cpp')
-rw-r--r-- | timestamp.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/timestamp.cpp b/timestamp.cpp new file mode 100644 index 0000000..a39a527 --- /dev/null +++ b/timestamp.cpp @@ -0,0 +1,21 @@ +#include "timestamp.h" + +Timestamp::Timestamp(long int time, int tick, int nbpm): + time(time), tick(tick), nbpm(nbpm){}; + +int Timestamp::getTime(){ + return time; +} + +int Timestamp::getTick(){ + return tick; +} + +float Timestamp::getBPM(){ + return nbpm/1000; +} + +int Timestamp::getNbpm(){ + return nbpm; +} +// vim: syntax=cpp.doxygen |