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
+3
View File
@@ -39,6 +39,7 @@
#include <sys/select.h>
#include "fatal_assert.h"
#include "timestamp.h"
/* Convenience wrapper for pselect(2).
@@ -138,6 +139,8 @@ public:
ret = 0;
}
freeze_timestamp();
return ret;
}