save one gettimeofday() syscall.
This commit is contained in:
parent
3345103cf3
commit
59abe4422e
1 changed files with 1 additions and 1 deletions
2
echoc.c
2
echoc.c
|
@ -199,7 +199,7 @@ main(int argc, char *argv[])
|
|||
disconnected = 0;
|
||||
}
|
||||
last = buffer;
|
||||
gettimeofday(&last_ts, NULL);
|
||||
memcpy(&last_ts, &now, sizeof(struct timeval));
|
||||
if (verbose)
|
||||
printf("received %d %ld.%06ld\n", buffer,
|
||||
(long)diff.tv_sec, diff.tv_usec);
|
||||
|
|
Loading…
Add table
Reference in a new issue