as for the time, here is an example -- it may not give you the complete desired output, but its a start. You will probably have to move the cursor to a specific location then display the text. Here is some example code. Click Components link at the top of the page, then scroll down and find Console Object.
Code:
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <windows.h>
using namespace std;
DWORD WINAPI ThreadProc(LPVOID param)
// The is a thread that only displays the date/time on current
// console line.
{
time_t t;
struct tm* tm;
char buf[126];
for(;;)
{
// get current time
t = time(0);
tm = localtime(&t);
// format for display
sprintf(buf,"%02d/%02d/%04d %02d:%02d:%02d",
tm->tm_mon+1,tm->tm_mday,tm->tm_year+1900,
tm->tm_hour,tm->tm_min,tm->tm_sec);
// move cursor to beginning of line then shot the text
cout << "\r" << buf;
// put thread to sleep for 1 second
Sleep(1000);
}
return 0;
}
int main(int argc, char *argv[])
{
HANDLE hThred;
DWORD dwThreadID;
hThred = CreateThread(0,0,ThreadProc,0,0,&dwThreadID);
system("PAUSE");
return EXIT_SUCCESS;
}