From 06d4c492da9b4b320251367636ada51cb0402fa4 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sat, 1 Jan 2022 19:13:03 +0900 Subject: [PATCH] sys.sleep --- tsvm_core/src/net/torvald/tsvm/VMJSR223Delegate.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsvm_core/src/net/torvald/tsvm/VMJSR223Delegate.kt b/tsvm_core/src/net/torvald/tsvm/VMJSR223Delegate.kt index 4cc6095..e0199b3 100644 --- a/tsvm_core/src/net/torvald/tsvm/VMJSR223Delegate.kt +++ b/tsvm_core/src/net/torvald/tsvm/VMJSR223Delegate.kt @@ -126,7 +126,11 @@ class VMJSR223Delegate(val vm: VM) { } fun spin() { - Thread.sleep(4L); + Thread.sleep(4L) + } + + fun sleep(time: Long) { + Thread.sleep(time) } fun waitForMemChg(addr: Int, andMask: Int, xorMask: Int) {