diff options
Diffstat (limited to 'tests/time_test.cpp')
-rw-r--r-- | tests/time_test.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/time_test.cpp b/tests/time_test.cpp deleted file mode 100644 index 2b53207..0000000 --- a/tests/time_test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "raul/TimeStamp.hpp" -#include "raul/TimeSlice.hpp" -#include <iostream> - -using namespace std; -using namespace Raul; - - -int -main() -{ - TimeUnit unit(TimeUnit::BEATS, 19200); - TimeSlice ts(48000, 19200, 120.0); - - double in_double; - cout << "Beats: "; - cin >> in_double; - - TimeStamp t(unit, (uint32_t)in_double, - (uint32_t)((in_double - (uint32_t)in_double) * unit.ppt())); - - cout << "\tSeconds: "; - cout << ts.beats_to_seconds(t); - cout << endl; - - cout << "\tTicks: "; - cout << ts.beats_to_ticks(t); - cout << endl; - - return 0; -} - |