Changeset 665edf40 for example/io/batch-readv.c
- Timestamp:
- Apr 19, 2021, 5:08:43 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 73d0c54a
- Parents:
- c8a0210 (diff), d2fadeb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/io/batch-readv.c
rc8a0210 r665edf40 66 66 } 67 67 68 uint64_t getTimeNsec() {68 uint64_t timeHiRes() { 69 69 timespec curr; 70 70 clock_gettime( CLOCK_REALTIME, &curr ); … … 163 163 164 164 printf("Running for %f second, reading %d bytes in batches of %d\n", duration, buflen, batch); 165 uint64_t start = getTimeNsec();166 uint64_t end = getTimeNsec();167 uint64_t prev = getTimeNsec();165 uint64_t start = timeHiRes(); 166 uint64_t end = timeHiRes(); 167 uint64_t prev = timeHiRes(); 168 168 for(;;) { 169 169 submit_and_drain(&iov, batch); 170 end = getTimeNsec();170 end = timeHiRes(); 171 171 uint64_t delta = end - start; 172 172 if( to_fseconds(end - prev) > 0.1 ) {
Note: See TracChangeset
for help on using the changeset viewer.