我知道这个问题在stackoverflow上已经被问了很多次,但没有一个真正帮助到我,所以我又来问一遍。
我正在使用Windows XP,并运行Visual Studio C++ 2008。
我需要的所有代码都是使用time.h编写的,但我认为它在这里可能不起作用,因为结果让我感到怀疑。
所以这就是我想要的。
star time = get time some how (this is my question)
my code
end time = get time some how (this is my question)
time passed = start time - end time