本文介绍了C#中的GetTickCount()等价物是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 如标题所示,是否有人知道C / C ++中针对C#的GetTickCount() 函数的等价物? 该函数应该返回自计算机/设备启动以来已经过去的时间 以毫秒启动。 通过te waym感谢所有以前的帮助。将当前的C / C ++代码转换为新的C#实际上并不容易,因为它不仅仅是不同的b / b 语法。我很难将简单的几页C / C ++转换成 C#...有时候,我希望在C#中有一个简单的memcpy。Hi,As the title indicated, does anyone know the equivalent of GetTickCount()function in C/C++ for C#?The function is supposed to return time elapsed since the computer/device isbooted in milisecond.By te waym thanks for all the previous help. It is really not easy toconvert current C/C++ codes into the new C# as it is more than differentsyntax. I am having headache converting a simple few pages of C/C++ intoC#... At times, I would like to have a simple memcpy in C#.推荐答案 然后以上情况不好,因为它会在~50天后回转。 考虑检查系统运行时性能计数器。 Mattias - Mattias Sj?gren [C#MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com 请回复到新闻组。Then the above is no good since it will wrap around after ~50 days.Consider checking the System Up Time performance counter instead.Mattias--Mattias Sj?gren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.comPlease reply only to the newsgroup. 这篇关于C#中的GetTickCount()等价物是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!