Parent Directory | Revision Log | Patch
revision 89 by torben, Mon Jun 16 10:09:17 2008 UTC | revision 132 by torben, Sun Dec 7 00:59:05 2008 UTC | |
---|---|---|
# | Line 37 namespace Util | Line 37 namespace Util |
37 | ||
38 | timeval GetTimeOfDay(); | timeval GetTimeOfDay(); |
39 | ||
40 | int my_system(const char* cmd); | int my_system(const char* cmd, std::string* response = 0); |
41 | ||
42 | std::string readfile(std::string filename); | |
43 | ||
44 | inline void Sleep(unsigned int msec) | inline void Sleep(unsigned int msec) |
45 | { | { |
46 | for (unsigned int i=0; i<msec; ++i) | if (msec < 1000) |
47 | usleep(1000); | { |
48 | usleep(1000*msec); | |
49 | } | |
50 | else | |
51 | { | |
52 | for (unsigned int i=0; i<msec; ++i) | |
53 | usleep(1000); | |
54 | } | |
55 | } | } |
56 | ||
57 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |