提交 ff5719de 编写于 作者: yitter's avatar yitter

获取下个时间戳前暂停1ms

上级 7d832e2a
......@@ -27,6 +27,7 @@ bld/
**/.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
.vscode
# MSTest test Results
[Tt]est[Rr]esult*/
......@@ -254,4 +255,4 @@ paket-files/
target/
# macOS
.DS_Store
.DS_Store,
......@@ -270,6 +270,8 @@ impl SnowWorkerM1 {
let mut tempTimeTicker = self.GetCurrentTimeTick();
while tempTimeTicker <= self._LastTimeTick {
// 暂停1ms
sleep(std::time::Duration::from_millis(1));
tempTimeTicker = self.GetCurrentTimeTick();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册