summaryrefslogtreecommitdiff
path: root/timestamp.cpp
diff options
context:
space:
mode:
authorSimon Gagne <gags2431@usherbrooke.ca>2023-03-21 11:35:43 -0400
committerSimon Gagne <gags2431@usherbrooke.ca>2023-03-21 11:35:43 -0400
commit73d1b5bdda882a533767e06e75831cc5c9e552a5 (patch)
treecbe336efcf45c7bb711f84042ade103ca1921fd9 /timestamp.cpp
parent24975df8fe3161947f99506e05538b05c05ba3a1 (diff)
parent1d23034ac50413ed3172bad68c944faf93199dcc (diff)
Windows compat
Diffstat (limited to 'timestamp.cpp')
-rw-r--r--timestamp.cpp21
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