未验证 提交 10bedbde 编写于 作者: W wopeizl 提交者: GitHub

Merge pull request #15105 from wopeizl/windows/fixtimer

fix timer test=develop
...@@ -16,6 +16,13 @@ limitations under the License. */ ...@@ -16,6 +16,13 @@ limitations under the License. */
#include <stdlib.h> #include <stdlib.h>
#include "paddle/fluid/platform/port.h" #include "paddle/fluid/platform/port.h"
#ifdef _WIN32
static unsigned sleep(unsigned seconds) {
Sleep(seconds * 1000);
return 0;
}
#endif
namespace paddle { namespace paddle {
namespace platform { namespace platform {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册