From d4f295af18b4678342ac477c3cbc6705438a035b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 1 Nov 2004 21:19:08 +0000 Subject: [PATCH] Use Sleep(mseconds) on Windows --- client/client.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 1.7.10.4