Parent Directory | Revision Log | Patch
revision 195 by torben, Wed Dec 17 23:43:26 2008 UTC | revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC | |
---|---|---|
# | Line 49 namespace Util | Line 49 namespace Util |
49 | ||
50 | inline void Sleep(unsigned int msec) | inline void Sleep(unsigned int msec) |
51 | { | { |
52 | if (msec < 1000) | if (msec < 1000) |
53 | { | { |
54 | usleep(1000*msec); | usleep(1000*msec); |
55 | } | } |
56 | else | else |
57 | { | { |
58 | for (unsigned int i=0; i<msec; ++i) | for (unsigned int i=0; i<msec; ++i) |
59 | usleep(1000); | usleep(1000); |
60 | } | } |
61 | } | } |
62 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |