Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/testread/testread.c

    r1433ecda r205f1add  
    126126        next_mark = 0;
    127127        last_mark = 0;
    128         struct timeval prev_time;
    129         struct timeval start_time;
    130         gettimeofday(&start_time, NULL);
     128        struct timespec prev_time;
     129        struct timespec start_time;
     130        getuptime(&start_time);
    131131        prev_time = start_time;
    132132
     
    152152
    153153                if (progress && offset >= next_mark) {
    154                         struct timeval cur_time;
    155                         gettimeofday(&cur_time, NULL);
     154                        struct timespec cur_time;
     155                        getuptime(&cur_time);
    156156
    157157                        uint32_t last_run = cur_time.tv_sec - prev_time.tv_sec;
     
    170170        }
    171171
    172         struct timeval final_time;
    173         gettimeofday(&final_time, NULL);
     172        struct timespec final_time;
     173        getuptime(&final_time);
    174174
    175175        uint32_t total_run_time = final_time.tv_sec - start_time.tv_sec;
Note: See TracChangeset for help on using the changeset viewer.