1
0
mirror of synced 2026-04-17 22:08:39 +08:00

commitClang

This commit is contained in:
yitter
2021-03-27 22:00:52 +08:00
parent 5fb6e03936
commit 4233840307
16 changed files with 857 additions and 2 deletions

View File

@@ -64,12 +64,17 @@ namespace Yitter.OrgSystem.TestA
[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
public static extern long NextId();
[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
public static extern void SetWorkerId(int workerId);
private static void CallDll()
{
int i = 0;
long id = 0;
DateTime start = DateTime.Now;
SetWorkerId(1);
while (i < 50000)
{
id = NextId();