Changeset 7f9d97f3 in mainline for uspace/app
- Timestamp:
- 2015-03-14T21:48:01Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 270bf4f
- Parents:
- c0c38c7c
- Location:
- uspace/app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/barber/barber.c
rc0c38c7c r7f9d97f3 233 233 getuptime(&cur); 234 234 235 plan_frame_timer(tv_sub (&cur, &prev));235 plan_frame_timer(tv_sub_diff(&cur, &prev)); 236 236 } 237 237 -
uspace/app/nettest1/nettest1.c
rc0c38c7c r7f9d97f3 412 412 gettimeofday(&time_after, NULL); 413 413 414 printf("Tested in %ld microseconds\n", tv_sub (&time_after,414 printf("Tested in %ld microseconds\n", tv_sub_diff(&time_after, 415 415 &time_before)); 416 416 -
uspace/app/nettest2/nettest2.c
rc0c38c7c r7f9d97f3 370 370 371 371 printf("sendto + recvfrom tested in %ld microseconds\n", 372 tv_sub (&time_after, &time_before));372 tv_sub_diff(&time_after, &time_before)); 373 373 374 374 gettimeofday(&time_before, NULL); … … 390 390 391 391 printf("sendto, recvfrom tested in %ld microseconds\n", 392 tv_sub (&time_after, &time_before));392 tv_sub_diff(&time_after, &time_before)); 393 393 394 394 rc = sockets_close(verbose, socket_ids, sockets); -
uspace/app/rcubench/rcubench.c
rc0c38c7c r7f9d97f3 264 264 265 265 getuptime(&end); 266 int64_t duration = tv_sub (&end, &start);266 int64_t duration = tv_sub_diff(&end, &start); 267 267 268 268 uint64_t secs = (uint64_t)duration / 1000 / 1000; -
uspace/app/tester/ipc/ping_pong.c
rc0c38c7c r7f9d97f3 50 50 gettimeofday(&now, NULL); 51 51 52 if (tv_sub (&now, &start) >= DURATION_SECS * 1000000L)52 if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L) 53 53 break; 54 54 -
uspace/app/tester/ipc/starve.c
rc0c38c7c r7f9d97f3 52 52 gettimeofday(&now, NULL); 53 53 54 if (tv_sub (&now, &start) >= DURATION_SECS * 1000000L)54 if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L) 55 55 break; 56 56
Note:
See TracChangeset
for help on using the changeset viewer.