Merge pull request #15105 from wopeizl/windows/fixtimer

fix timer test=develop
revert-15207-remove_op_handle_lock_and_fix_var
wopeizl 6 years ago committed by GitHub
commit 10bedbdeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,6 +16,13 @@ limitations under the License. */
#include <stdlib.h>
#include "paddle/fluid/platform/port.h"
#ifdef _WIN32
static unsigned sleep(unsigned seconds) {
Sleep(seconds * 1000);
return 0;
}
#endif
namespace paddle {
namespace platform {

Loading…
Cancel
Save