1
0
mirror of synced 2026-02-22 12:57:56 +08:00

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

This commit is contained in:
yitter
2022-07-14 16:22:04 +08:00
parent 7d832e2acd
commit ff5719de7e
2 changed files with 4 additions and 1 deletions

View File

@@ -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();
}