|
@@ -21,6 +21,7 @@
|
|
|
// LOVE
|
|
|
#include "common/config.h"
|
|
|
#include "common/int.h"
|
|
|
+#include "common/delay.h"
|
|
|
#include "Timer.h"
|
|
|
|
|
|
#if defined(LOVE_WINDOWS)
|
|
@@ -85,6 +86,12 @@ void Timer::step()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void Timer::sleep(double seconds) const
|
|
|
+{
|
|
|
+ if (seconds > 0)
|
|
|
+ love::sleep((unsigned int)(seconds*1000));
|
|
|
+}
|
|
|
+
|
|
|
double Timer::getDelta() const
|
|
|
{
|
|
|
return dt;
|