/* name: timestamp_main.cxx author: the C++ course @X purpose: example for INF585 - time stamp main source: GNU C++ history: 100126 work started */ #include #include "timestamp.h" int main(int argc, char **argv) { using namespace std; int ret = 0; TimeStamp theTimeStamp; try { theTimeStamp.update(); } catch (...) { cout << "update exception caught in main" << endl; } cout << theTimeStamp << endl; return ret; }