diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-29 14:12:03 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-07-15 20:22:27 (GMT) |
commit | c0c5ef9bffb0130e169aeddcb8487b670c6b56fe (patch) | |
tree | 229e624ce902d6f1cf4204c8a55a5abdee73daa6 /src/util.cc | |
parent | 638b0336e98af65240c1d0d66c5e0d9e5b800d9e (diff) | |
download | Ninja-c0c5ef9bffb0130e169aeddcb8487b670c6b56fe.zip Ninja-c0c5ef9bffb0130e169aeddcb8487b670c6b56fe.tar.gz Ninja-c0c5ef9bffb0130e169aeddcb8487b670c6b56fe.tar.bz2 |
print edges per second
prints the rate of finished edges per second to the console,
for instance with NINJA_STATUS="[%s/%t %o(%c)/s] ":
[132/1922 16.1(14)/s]
16.1 is the average for all processed files (here 132 since start)
14 is the average of the last n files while n is the number specifies by
-j (or its default)
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/util.cc b/src/util.cc index d8d7fb3..ab3275a 100644 --- a/src/util.cc +++ b/src/util.cc @@ -204,16 +204,6 @@ void SetCloseOnExec(int fd) { #endif // ! _WIN32 } -int64_t GetTimeMillis() { -#ifdef _WIN32 - // GetTickCount64 is only available on Vista or later. - return GetTickCount(); -#else - timeval now; - gettimeofday(&now, NULL); - return ((int64_t)now.tv_sec * 1000) + (now.tv_usec / 1000); -#endif -} const char* SpellcheckStringV(const string& text, const vector<const char*>& words) { |