change clock to CLOCK_PROCESS_CPUTIME_ID
This commit is contained in:
parent
de74e11641
commit
233838b4bc
|
@ -189,11 +189,11 @@ int main(int argc, char *argv[]){
|
||||||
|
|
||||||
for(l =0;l< loops;l++){
|
for(l =0;l< loops;l++){
|
||||||
|
|
||||||
clock_gettime(CLOCK_REALTIME,&time_start);
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_start);
|
||||||
|
|
||||||
TRSV(&uplo,&transa,&diag,&n,a,&n,x,&inc_x);
|
TRSV(&uplo,&transa,&diag,&n,a,&n,x,&inc_x);
|
||||||
|
|
||||||
clock_gettime(CLOCK_REALTIME,&time_end);
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_end);
|
||||||
nanos = time_end.tv_nsec - time_start.tv_nsec;
|
nanos = time_end.tv_nsec - time_start.tv_nsec;
|
||||||
seconds = time_end.tv_sec - time_start.tv_sec;
|
seconds = time_end.tv_sec - time_start.tv_sec;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue