3
27
2010
0

在linux系统下获取时间

 

/***********************Time management***************************************/
#include <time.h>
#include <sys/time.h>
double gettime(){
	struct timeval t;
	gettimeofday(&t, NULL); 
	return t.tv_sec + t.tv_usec/1000000.0;
}
double startTime;
/******************************************************************************/

 

 

Category: 未分类 | Tags: | Read Count: 1007

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com