Changes in uspace/app/nettest2/nettest2.c [1ab8539:26de91a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nettest2/nettest2.c
r1ab8539 r26de91a 356 356 357 357 struct timeval time_before; 358 gettimeofday(&time_before, NULL); 358 rc = gettimeofday(&time_before, NULL); 359 if (rc != EOK) { 360 fprintf(stderr, "Get time of day error %d\n", rc); 361 return rc; 362 } 359 363 360 364 rc = sockets_sendto_recvfrom(verbose, socket_ids, sockets, address, … … 364 368 365 369 struct timeval time_after; 366 gettimeofday(&time_after, NULL); 370 rc = gettimeofday(&time_after, NULL); 371 if (rc != EOK) { 372 fprintf(stderr, "Get time of day error %d\n", rc); 373 return rc; 374 } 367 375 368 376 if (verbose) … … 372 380 tv_sub(&time_after, &time_before)); 373 381 374 gettimeofday(&time_before, NULL); 382 rc = gettimeofday(&time_before, NULL); 383 if (rc != EOK) { 384 fprintf(stderr, "Get time of day error %d\n", rc); 385 return rc; 386 } 375 387 376 388 rc = sockets_sendto(verbose, socket_ids, sockets, address, addrlen, … … 384 396 return rc; 385 397 386 gettimeofday(&time_after, NULL); 398 rc = gettimeofday(&time_after, NULL); 399 if (rc != EOK) { 400 fprintf(stderr, "Get time of day error %d\n", rc); 401 return rc; 402 } 387 403 388 404 if (verbose)
Note:
See TracChangeset
for help on using the changeset viewer.