Commit ae734026 authored by David Johnson's avatar David Johnson

time for ith block, send and recv

parent cd2dfe1f
......@@ -83,6 +83,7 @@ int main(int argc,char **argv) {
int bytesRead;
int blocksRead = 0;
struct timeval t1;
int block_count = 0;
parse_args(argc,argv);
......@@ -156,8 +157,14 @@ int main(int argc,char **argv) {
}
}
++block_count;
gettimeofday(&t1,NULL);
fprintf(stdout,"TIME %d %.4f\n",
block_count,
t1.tv_sec + t1.tv_usec / 1000000);
fprintf(stdout,
"INFO: read %d bytes (a block) at %.6f\n",
block_size,
......
......@@ -119,6 +119,7 @@ int main(int argc,char **argv) {
int i;
int retval;
int bytesWritten;
struct timeval tv;
parse_args(argc,argv);
......@@ -194,6 +195,12 @@ int main(int argc,char **argv) {
}
}
gettimeofday(&tv,NULL);
fprintf(stdout,"TIME %d %.4f\n",
block_count - remaining_block_count,
tv.tv_sec + tv.tv_usec / 1000000);
--remaining_block_count;
if (remaining_block_count % 8 == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment