当前位置: 技术问答>linux和unix
times的问题 和AUPE运行结果不同, 为何? 谢谢
来源: 互联网 发布时间:2016-06-01
本文导语: #include #include #include #include using namespace std; static void pr_times( clock_t real, struct tms *tmsstart, struct tms *tmsend) { static long clktck = 0; if( clktck == 0 ) if( (clktck = sysconf(_SC_CLK_TCK))
#include
#include
#include
#include
using namespace std;
static void
pr_times( clock_t real, struct tms *tmsstart, struct tms *tmsend)
{
static long clktck = 0;
if( clktck == 0 )
if( (clktck = sysconf(_SC_CLK_TCK))
#include
#include
#include
using namespace std;
static void
pr_times( clock_t real, struct tms *tmsstart, struct tms *tmsend)
{
static long clktck = 0;
if( clktck == 0 )
if( (clktck = sysconf(_SC_CLK_TCK))