summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_tick.h
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-06-10 17:28:41 +0300
committerGitHub <noreply@github.com>2020-06-10 17:28:41 +0300
commit688b3bcd67b47a4ddf593dc0244409b2c5aa10c7 (patch)
tree4cebc47a45ac03ecf049e4a87ac21150fd67618e /arm9/lib/include/OS_tick.h
parent81afcebd41d4485cc0285860305dd4304380f9d2 (diff)
parente23bf78c5479f2c488f9441f013a9651d1f886f1 (diff)
Merge pull request #155 from red031000/master
arm9 OS_thread
Diffstat (limited to 'arm9/lib/include/OS_tick.h')
-rw-r--r--arm9/lib/include/OS_tick.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arm9/lib/include/OS_tick.h b/arm9/lib/include/OS_tick.h
index fb4ce7e6..f1c7145d 100644
--- a/arm9/lib/include/OS_tick.h
+++ b/arm9/lib/include/OS_tick.h
@@ -1,8 +1,12 @@
#ifndef POKEDIAMOND_OS_TICK_H
#define POKEDIAMOND_OS_TICK_H
-#include "nitro/types.h"
+#include "consts.h"
typedef u64 OSTick;
+#define OS_SYSTEM_CLOCK HW_SYSTEM_CLOCK
+
+#define OS_MilliSecondsToTicks(msec) ((OSTick)(((OS_SYSTEM_CLOCK/1000) * (u64)(msec)) / 64))
+
#endif //POKEDIAMOND_OS_TICK_H