Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1397)

Unified Diff: util/misc/clock.h

Issue 807973002: win: clock implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: remove SleepNanoseconds Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | util/misc/clock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/misc/clock.h
diff --git a/util/misc/clock.h b/util/misc/clock.h
index 88bdcd508c16d3bbed1def82b08b1c44c22e2306..a07e12a6ee154d0b20e5c71a94fae3c8651313f5 100644
--- a/util/misc/clock.h
+++ b/util/misc/clock.h
@@ -17,6 +17,8 @@
#include <stdint.h>
+#include "build/build_config.h"
+
namespace crashpad {
//! \brief Returns the value of the system’s monotonic clock.
@@ -32,6 +34,8 @@ namespace crashpad {
//! \return The value of the system’s monotonic clock, in nanoseconds.
uint64_t ClockMonotonicNanoseconds();
+#if !defined(OS_WIN) // Not implemented on Windows yet.
+
//! \brief Sleeps for the specified duration.
//!
//! \param[in] nanoseconds The number of nanoseconds to sleep. The actual sleep
@@ -41,6 +45,8 @@ uint64_t ClockMonotonicNanoseconds();
//! being interrupted by a signal.
void SleepNanoseconds(uint64_t nanoseconds);
+#endif
+
} // namespace crashpad
#endif // CRASHPAD_UTIL_MISC_CLOCK_H_
« no previous file with comments | « no previous file | util/misc/clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698