What is the best way to get the time stored into a variable? In particular, I am looking for a way to get the number of seconds past the minute stored into an integer variable. Thank you, Eric Slater
Printable View
What is the best way to get the time stored into a variable? In particular, I am looking for a way to get the number of seconds past the minute stored into an integer variable. Thank you, Eric Slater
SYSTEMTIME sysTime;
GetLocalTime(&sysTime);
// seconds past the minute
word Seconds = sysTime.wSecond;
CTime t = CTime::GetCurrentTime();
int Seconds = t.GetSecond();