Skip to content

Commit 233838b

Browse files
committed
change clock to CLOCK_PROCESS_CPUTIME_ID
1 parent de74e11 commit 233838b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark/trsv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ int main(int argc, char *argv[]){
189189

190190
for(l =0;l< loops;l++){
191191

192-
clock_gettime(CLOCK_REALTIME,&time_start);
192+
clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_start);
193193

194194
TRSV(&uplo,&transa,&diag,&n,a,&n,x,&inc_x);
195195

196-
clock_gettime(CLOCK_REALTIME,&time_end);
196+
clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_end);
197197
nanos = time_end.tv_nsec - time_start.tv_nsec;
198198
seconds = time_end.tv_sec - time_start.tv_sec;
199199

0 commit comments

Comments
 (0)