Ignore:
File:
1 edited

Legend:

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

    r205f1add r1433ecda  
    126126        next_mark = 0;
    127127        last_mark = 0;
    128         struct timespec prev_time;
    129         struct timespec start_time;
    130         getuptime(&start_time);
     128        struct timeval prev_time;
     129        struct timeval start_time;
     130        gettimeofday(&start_time, NULL);
    131131        prev_time = start_time;
    132132
     
    152152
    153153                if (progress && offset >= next_mark) {
    154                         struct timespec cur_time;
    155                         getuptime(&cur_time);
     154                        struct timeval cur_time;
     155                        gettimeofday(&cur_time, NULL);
    156156
    157157                        uint32_t last_run = cur_time.tv_sec - prev_time.tv_sec;
     
    170170        }
    171171
    172         struct timespec final_time;
    173         getuptime(&final_time);
     172        struct timeval final_time;
     173        gettimeofday(&final_time, NULL);
    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.