summaryrefslogtreecommitdiff
path: root/timestamp.cpp
diff options
context:
space:
mode:
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