From f53709934b347d916aba9f18a59096502de1d294 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Wed, 9 Jul 2014 17:08:31 +0000 Subject: [PATCH] server timing git-svn-id: svn://elaine/murooma/trunk@81 d8a302eb-03bc-478d-80e4-98257eca68ef --- server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.cpp b/server.cpp index 1fd09bc8..73c010b4 100644 --- a/server.cpp +++ b/server.cpp @@ -35,8 +35,6 @@ int main () { long nextTick = getTickCount(); while (cin.good()) { - long currentTick = getTickCount(); - nextTick += WIRE_CHUNK_MS; for (size_t n=0; (n 0) { usleep((nextTick - currentTick) * 1000); } + nextTick += WIRE_CHUNK_MS; } delete chunk; return 0;