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.cpp | |
parent | 24975df8fe3161947f99506e05538b05c05ba3a1 (diff) | |
parent | 1d23034ac50413ed3172bad68c944faf93199dcc (diff) |
Windows compat
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 |