diff --git a/source/monad.cpp b/source/monad.cpp index 89193718feb1a8747fee1aeb2f4be41952c5f164..59486ec6366ad81b3095558c382d4649289e0827 100644 --- a/source/monad.cpp +++ b/source/monad.cpp @@ -62,6 +62,16 @@ bool optimize = false; } +// http://stackoverflow.com/questions/997946/c-get-current-time-and-date +string getTime() +{ + time_t now = time(0); + struct tm tstruct; + char buf[80]; + tstruct = *localtime(&now); + strftime(buf, sizeof(buf), "%Y-%m-%d %X", &tstruct); + return buf; +} int main(int argc, const char * const * argv) { @@ -78,10 +88,9 @@ int main(int argc, const char * const * argv) processArgs(argc, argv); cout << versioninfo::official_name << endl; - cout << "Testing " << assignment_base; + cout << "Testing " << assignment_base << " at " << getTime() << endl; if (mp_part != no_mp_part) cout << '.' << (int)mp_part; - cout << "..." << endl; - cout << getRandomQuote() << endl; + cout << endl << getRandomQuote() << endl; cout << endl; cout << "Setting up test environment..." << endl;