Get system timestamp less often (only after sleeping/selecting)

This commit is contained in:
Keith Winstein
2012-07-26 20:54:19 -04:00
parent 5e3ec2e037
commit a744004bf6
7 changed files with 150 additions and 44 deletions
+2
View File
@@ -64,6 +64,7 @@
#include "fatal_assert.h"
#include "locale_utils.h"
#include "select.h"
#include "timestamp.h"
#if HAVE_PTY_H
#include <pty.h>
@@ -114,6 +115,7 @@ void spin( void )
req.tv_sec = 0;
req.tv_nsec = 100000000; /* 0.1 sec */
nanosleep( &req, NULL );
freeze_timestamp();
}
}