diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-19 20:17:47 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-20 06:59:47 +0200 |
commit | ce2b29af43b4624e053377ef00c5a7e2b80c08b7 (patch) | |
tree | af6bfc20de9fd2c9752dc1924a2db45b040133b6 /src/socket_base.cpp | |
parent | 18a61b7cd60399944972482fabab4d7e81ffddae (diff) |
Clock instance removed from surveyor_t
SURVEYOR socket now uses clock instance from socket_base_t
for measuring survey timeout. This allows for better performance
in tight xs_recv() loops.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r-- | src/socket_base.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 39881d5..3e57c28 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -933,3 +933,7 @@ int xs::socket_base_t::sndtimeo () return options.sndtimeo; } +uint64_t xs::socket_base_t::now_ms () +{ + return clock.now_ms (); +} |