summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-09-26 16:55:54 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-26 16:55:54 +0200
commit5dae27d0ed92aba070f824a4bf5dfa7845aa165d (patch)
tree8bd415bf91abf2b1224f614c322ea38248668569 /src/config.hpp
parent7d5061798c93655796b1cf64afd7f5b8146a7681 (diff)
clock_t class added
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 0fe7c57..5f822b4 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -76,6 +76,13 @@ namespace zmq
// 3,000,000 ticks equals to 1 - 2 milliseconds on current CPUs.
max_command_delay = 3000000,
+ // Low-precision clock precision in CPU ticks. 1ms. Value of 1000000
+ // should be OK for CPU frequencies above 1GHz. If should work
+ // reasonably well fro CPU frequencies above 500MHz. For lower CPU
+ // frequencies you may consider lowering this value to get best
+ // possible latencies.
+ clock_precision = 1000000,
+
// Maximal number of non-accepted connections that can be held by
// TCP listener object.
tcp_connection_backlog = 10,