Parent Directory | Revision Log | Patch
revision 126 by torben, Thu Jun 19 14:47:52 2008 UTC | revision 127 by torben, Sat Dec 6 14:43:41 2008 UTC | |
---|---|---|
# | Line 42 namespace Util | Line 42 namespace Util |
42 | ||
43 | inline void Sleep(unsigned int msec) | inline void Sleep(unsigned int msec) |
44 | { | { |
45 | for (unsigned int i=0; i<msec; ++i) | if (msec < 1000) |
46 | usleep(1000); | { |
47 | usleep(1000*msec); | |
48 | } | |
49 | else | |
50 | { | |
51 | for (unsigned int i=0; i<msec; ++i) | |
52 | usleep(1000); | |
53 | } | |
54 | } | } |
55 | ||
56 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |