在类定义中导入如下声明语句,可以直接在类方法中使用该函数。

[DllImport("kernel32")] extern static UInt64 GetTickCount64();