summaryrefslogtreecommitdiffstats
path: root/test/time_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/time_test.cpp')
-rw-r--r--test/time_test.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/test/time_test.cpp b/test/time_test.cpp
index c6f3d77..61b9b9a 100644
--- a/test/time_test.cpp
+++ b/test/time_test.cpp
@@ -26,21 +26,24 @@ using namespace Raul;
int
main()
{
- TimeUnit unit(TimeUnit::BEATS, 19200);
- TimeSlice ts(48000, 19200, 120.0);
+ Raul::TimeUnit unit(Raul::TimeUnit::BEATS, 19200);
+ Raul::TimeSlice ts(48000, 19200, 120.0);
double in_double = 2.5;
- TimeStamp t(unit, static_cast<uint32_t>(in_double),
- static_cast<uint32_t>((in_double - static_cast<uint32_t>(in_double)) * unit.ppt()));
+ Raul::TimeStamp t(unit,
+ static_cast<uint32_t>(in_double),
+ static_cast<uint32_t>(
+ (in_double - static_cast<uint32_t>(in_double)) *
+ unit.ppt()));
- cout << "\tSeconds: ";
- cout << ts.beats_to_seconds(t);
- cout << endl;
+ std::cout << "\tSeconds: ";
+ std::cout << ts.beats_to_seconds(t);
+ std::cout << std::endl;
- cout << "\tTicks: ";
- cout << ts.beats_to_ticks(t);
- cout << endl;
+ std::cout << "\tTicks: ";
+ std::cout << ts.beats_to_ticks(t);
+ std::cout << std::endl;
return 0;
}