Changeset 205f1add in mainline for uspace/app/testread/testread.c
- Timestamp:
- 2018-08-23T21:14:56Z (6 years ago)
- Children:
- f33c989e
- Parents:
- e2625b1a
- git-author:
- Jakub Jermar <jakub@…> (2018-08-21 21:58:52)
- git-committer:
- Jakub Jermar <jakub@…> (2018-08-23 21:14:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/testread/testread.c
re2625b1a r205f1add 126 126 next_mark = 0; 127 127 last_mark = 0; 128 struct time valprev_time;129 struct time valstart_time;130 get timeofday(&start_time, NULL);128 struct timespec prev_time; 129 struct timespec start_time; 130 getuptime(&start_time); 131 131 prev_time = start_time; 132 132 … … 152 152 153 153 if (progress && offset >= next_mark) { 154 struct time valcur_time;155 get timeofday(&cur_time, NULL);154 struct timespec cur_time; 155 getuptime(&cur_time); 156 156 157 157 uint32_t last_run = cur_time.tv_sec - prev_time.tv_sec; … … 170 170 } 171 171 172 struct time valfinal_time;173 get timeofday(&final_time, NULL);172 struct timespec final_time; 173 getuptime(&final_time); 174 174 175 175 uint32_t total_run_time = final_time.tv_sec - start_time.tv_sec;
Note:
See TracChangeset
for help on using the changeset viewer.