This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
idgenerator
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
6
Wiki
Activity
Issues
5
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
获取下个时间戳前暂停1ms
tags/v1.3.1^0
yitter
2 years ago
parent
7d832e2acd
commit
ff5719de7e
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
Rust/source/.gitignore
+2
-0
Rust/source/src/idgen/snow_worker_m1.rs
+ 2
- 1
Rust/source/.gitignore
View File
@@ -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
,
+ 2
- 0
Rust/source/src/idgen/snow_worker_m1.rs
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();
}
Write
Preview
Loading…
Cancel
Save