Skip to content
Snippets Groups Projects
Commit 516bf41c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent d11c0995
No related branches found
No related tags found
No related merge requests found
// $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 // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -100,9 +100,9 @@ int main(int argc, char *argv[]) ...@@ -100,9 +100,9 @@ int main(int argc, char *argv[])
// do the computation and merge some views // do the computation and merge some views
for(int i = 0; i < 10; i++){ for(int i = 0; i < 10; i++){
client.Info("Computing curve..."); client.Info("Computing curve...");
// fake computation... // fake computation for 500ms:
#if !defined(WIN32) || defined(__CYGWIN__) #if !defined(WIN32) || defined(__CYGWIN__)
usleep(500); usleep(500 * 1000);
#else #else
Sleep(500); Sleep(500);
#endif #endif
......
/* $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 * Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
* *
...@@ -141,11 +141,11 @@ int main(int argc, char *argv[]) ...@@ -141,11 +141,11 @@ int main(int argc, char *argv[])
for(i = 0; i < 10; i++) { for(i = 0; i < 10; i++) {
sprintf(tmp, "%d %% complete", 10*i); sprintf(tmp, "%d %% complete", 10*i);
Gmsh_SendString(s, GMSH_CLIENT_PROGRESS, tmp); Gmsh_SendString(s, GMSH_CLIENT_PROGRESS, tmp);
/* Fake some cpu-intensive calculation: */ /* Fake some cpu-intensive calculation during 100ms: */
#if !defined(WIN32) || defined(__CYGWIN__) #if !defined(WIN32) || defined(__CYGWIN__)
usleep(500 * 1000); usleep(100 * 1000);
#else #else
Sleep(500); Sleep(100);
#endif #endif
} }
sprintf(tmp, "Done with %s!", name); sprintf(tmp, "Done with %s!", name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment