Fixed timestamps

Now gets timestamps from socket,
instead for current time when `recv` returns.