/* _______ __ __ __ __ \ \ ____ __ __ _______ |__|| | | | |__| ____ ____ / | \ _/ __ \ | | \\_ __ \| || | | | | | / _ \ / \ / | \\ ___/ | | / | | \/| || |__| |__| |( <_> )| | \ \____|__ / \___ >|____/ |__| |__||____/|____/|__| \____/ |___| / =========\/======\/=================================================\/== v0.01 03/AUG/2007 (C) Copyright 2007-2007 Scott D. Yelich SOME RIGHTS RESERVED .,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.-*~'`^`'~*-,._.,-*~'`^`'~*-,. LICENSE: Creative Commons Attribution 3.0 License. SEE: http://creativecommons.org/licenses/by/3.0/ Mon Aug 13 23:19:12 EDT 2007, v0.01 sdy This is a *very* simple program written to do test basic sqlite3 functionality. */ // C++ #include #include int msleep(int ms) { struct timespec ts; ts.tv_sec = ms / 1000; ts.tv_nsec = 1000000 * ( ms - ( ts.tv_sec*1000 ) ); while(nanosleep(&ts,&ts) == -1) { continue; } return 1; } int main(int argc, char **argv) { int tps = 50; timespec time_req; timespec time_rem; int rc; if ( argv[1] ) { std::cerr << "argv[1]=("<> x; if ( x > 0 ) { tps = x; } std::cerr << "tps=("<