diff --git a/paddle/fluid/platform/timer.h b/paddle/fluid/platform/timer.h index 9bb66eb97ad92e526147a5a4c009880783ac3c94..56019ae7cf21c15c10b1f9247c9d95deb2a48c43 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 {