当前位置: 技术问答>linux和unix
请问在虚拟机linux上运行函数会变慢吗?
来源: 互联网 发布时间:2017-04-03
本文导语: #include #include int main(void){ int t1; typedef struct _timeval { long s; long ns; } timeval; timeval start,end; printf("time now %dn",t1); int i,j; double n; gettimeofday(&start,NULL); for(i=0;i
#include
#include
int main(void){
int t1;
typedef struct _timeval {
long s;
long ns;
} timeval;
timeval start,end;
printf("time now %dn",t1);
int i,j;
double n;
gettimeofday(&start,NULL);
for(i=0;i
#include
int main(void){
int t1;
typedef struct _timeval {
long s;
long ns;
} timeval;
timeval start,end;
printf("time now %dn",t1);
int i,j;
double n;
gettimeofday(&start,NULL);
for(i=0;i