Index: base/threading/platform_thread.h |
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h |
index 8382bbeb01790ddb4dbce207e35488bfdf55b684..f958ef6c7db61f09ec7a55bb513b275592b0b241 100644 |
--- a/base/threading/platform_thread.h |
+++ b/base/threading/platform_thread.h |
@@ -12,6 +12,7 @@ |
#include "base/base_export.h" |
#include "base/basictypes.h" |
+#include "base/time.h" |
#include "build/build_config.h" |
#if defined(OS_WIN) |
@@ -74,6 +75,9 @@ class BASE_EXPORT PlatformThread { |
// Sleeps for the specified duration (units are milliseconds). |
static void Sleep(int duration_ms); |
+ // Sleeps for the specified duration. |
+ static void Sleep(base::TimeDelta duration); |
+ |
// Sets the thread name visible to debuggers/tools. This has no effect |
// otherwise. This name pointer is not copied internally. Thus, it must stay |
// valid until the thread ends. |