From 516bf41c2fdd47115260712e134fc14c34a198b7 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 25 Feb 2006 14:36:53 +0000 Subject: [PATCH] *** empty log message *** --- utils/solvers/c++/solver.cpp | 6 +++--- utils/solvers/c/solver.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/solvers/c++/solver.cpp b/utils/solvers/c++/solver.cpp index b1abd41dea..e58952d647 100644 --- a/utils/solvers/c++/solver.cpp +++ b/utils/solvers/c++/solver.cpp @@ -1,4 +1,4 @@ -// $Id: solver.cpp,v 1.8 2006-02-24 22:07:08 geuzaine Exp $ +// $Id: solver.cpp,v 1.9 2006-02-25 14:36:53 geuzaine Exp $ // // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // @@ -100,9 +100,9 @@ int main(int argc, char *argv[]) // do the computation and merge some views for(int i = 0; i < 10; i++){ client.Info("Computing curve..."); - // fake computation... + // fake computation for 500ms: #if !defined(WIN32) || defined(__CYGWIN__) - usleep(500); + usleep(500 * 1000); #else Sleep(500); #endif diff --git a/utils/solvers/c/solver.c b/utils/solvers/c/solver.c index 2846d45fa1..dfa6a5aa7a 100644 --- a/utils/solvers/c/solver.c +++ b/utils/solvers/c/solver.c @@ -1,4 +1,4 @@ -/* $Id: solver.c,v 1.4 2006-02-25 00:15:01 geuzaine Exp $ */ +/* $Id: solver.c,v 1.5 2006-02-25 14:36:53 geuzaine Exp $ */ /* * Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle * @@ -141,11 +141,11 @@ int main(int argc, char *argv[]) for(i = 0; i < 10; i++) { sprintf(tmp, "%d %% complete", 10*i); Gmsh_SendString(s, GMSH_CLIENT_PROGRESS, tmp); - /* Fake some cpu-intensive calculation: */ + /* Fake some cpu-intensive calculation during 100ms: */ #if !defined(WIN32) || defined(__CYGWIN__) - usleep(500 * 1000); + usleep(100 * 1000); #else - Sleep(500); + Sleep(100); #endif } sprintf(tmp, "Done with %s!", name); -- GitLab