From: Adam Dickmeiss Date: Mon, 1 Nov 2004 21:19:08 +0000 (+0000) Subject: Use Sleep(mseconds) on Windows X-Git-Tag: YAZ.2.0.28~17 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d4f295af18b4678342ac477c3cbc6705438a035b;p=yaz-moved-to-github.git Use Sleep(mseconds) on Windows --- diff --git a/client/client.c b/client/client.c index 116c34c..0aad380 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.253 2004-10-12 13:23:46 ja7 Exp $ + * $Id: client.c,v 1.254 2004-11-01 21:19:08 adam Exp $ */ #include @@ -3714,8 +3714,12 @@ int cmd_sleep(const char* args ) { int sec=atoi(args); if( sec > 0 ) { +#ifdef WIN32 + Sleep(sec*1000); +#else sleep(sec); - printf("Done sleeping %d secunds\n", sec); +#endif + printf("Done sleeping %d seconds\n", sec); } return 1; }