在循环获取下一时间戳时,暂停1ms
This commit is contained in:
@@ -351,6 +351,7 @@ namespace Yitter.IdGenerator
|
||||
|
||||
while (tempTimeTicker <= _LastTimeTick)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
tempTimeTicker = GetCurrentTimeTick();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user