#include #include #include #include #include #include int main(int argc, char **argv) { OSCalendarTime tm; WHBProcInit(); WHBLogConsoleInit(); WHBLogPrintf("Hello World!"); while(WHBProcIsRunning()) { OSTicksToCalendarTime(OSGetTime(), &tm); WHBLogPrintf("%02d/%02d/%04d %02d:%02d:%02d I'm still here.", tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_hour, tm.tm_min, tm.tm_sec); WHBLogConsoleDraw(); OSSleepTicks(OSMillisecondsToTicks(1000)); } WHBLogPrintf("Exiting... good bye."); WHBLogConsoleDraw(); OSSleepTicks(OSMillisecondsToTicks(1000)); WHBLogConsoleFree(); WHBProcShutdown(); return 0; }