04-30-2005 07:30 PM
05-01-2005 02:00 PM
SYSTEMTIME t;
::GetLocalTime(&t);
std::cout << t.wHour << ":" << t.wMinute << ":" << t.wSecond << "." << t.wMilliseconds << std::endl;
05-01-2005 04:45 PM
05-01-2005 10:02 PM
int GetSystemTime (int *hours, int *minutes, int *seconds);
Windows SDK also contains a GetSystemTime function. If you include windows.h and do not include utility.h, you will receive compile errors if you call the GetSystemTime function.