/*****************************************************************************\ * * * Name : sleep_ms * * Author : Chris Koeritz * * * * Purpose: * * * * Takes a number from the command line and sleeps for that many milli- * * seconds. * * * ******************************************************************************* * Copyright (c) 2001-$now By Author. This program is free software; you can * * redistribute it and/or modify it under the terms of the GNU General Public * * License as published by the Free Software Foundation; either version 2 of * * the License or (at your option) any later version. This is online at: * * http://www.fsf.org/copyleft/gpl.html * * Please send any updates to: fred@gruntose.com * \*****************************************************************************/ #include #include #include #include #include using namespace application; using namespace basis; using namespace timely; DEFINE_ARGC_AND_ARGV; ///DEFINE_INSTANCE_HANDLE; int main(int argc, char *argv[]) { if (argc < 2) { printf("%s usage:\nThe first parameter is taken as the number of " "milliseconds to sleep.\n", argv[0]); return 1; } int snooze_ms; sscanf(argv[1], "%d", &snooze_ms); time_control::sleep_ms(snooze_ms); return 0; } #ifdef __BUILD_STATIC_APPLICATION__ // static dependencies found by buildor_gen_deps.sh: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif // __BUILD_STATIC_APPLICATION__