From 813c2ce539dcd1f69d81a42d711a0d46e1faaf40 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Fri, 28 Dec 2018 14:42:04 +0800 Subject: [PATCH] fix timer test=develop --- paddle/fluid/platform/timer.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paddle/fluid/platform/timer.h b/paddle/fluid/platform/timer.h index 9bb66eb97a..56019ae7cf 100644 --- a/paddle/fluid/platform/timer.h +++ b/paddle/fluid/platform/timer.h @@ -16,6 +16,13 @@ limitations under the License. */ #include #include "paddle/fluid/platform/port.h" +#ifdef _WIN32 +static unsigned sleep(unsigned seconds) { + Sleep(seconds * 1000); + return 0; +} +#endif + namespace paddle { namespace platform { -- GitLab