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 {