summaryrefslogtreecommitdiff
path: root/euler/source/syscall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'euler/source/syscall.cpp')
-rw-r--r--euler/source/syscall.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/euler/source/syscall.cpp b/euler/source/syscall.cpp
index 0d30c4a..7637b10 100644
--- a/euler/source/syscall.cpp
+++ b/euler/source/syscall.cpp
@@ -407,4 +407,27 @@ namespace euler::syscall {
}
+ void sleep(uint64_t mibiseconds) {
+
+ uint64_t rax = 25;
+ uint64_t rdi = mibiseconds;
+ uint64_t rsi;
+ uint64_t rdx;
+
+ __euler_do_syscall(rax, rdi, rsi, rdx);
+
+ }
+
+ uint64_t get_time() {
+
+ uint64_t rax = 26;
+ uint64_t rdi;
+ uint64_t rsi;
+ uint64_t rdx;
+
+ __euler_do_syscall(rax, rdi, rsi, rdx);
+ return rax;
+
+ }
+
}