计时函数 普通计时可以clock() 精确计时:windows:QueryPerformanceCounter() linux:clock_gettime() 用法:google 参考: http://blog.csdn.net/pirate_code/article/details/5670055 http://blog.chinaunix.net/uid-25909722-id-2827364.html