Well, I found this way to do it:
Code:
time_t rawtime;
struct tm* timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
f_Start_Time = (timeinfo->tm_hour + (timeinfo->tm_min)/60. + (timeinfo->tm_sec)/3600.);
However, I have now been informed that I need to also implement milliseconds into my code and this can only go down to seconds. Now I'm really in need of some help. I've searched everywhere and tried a few different techniques to no avail. SYSTEMTIME crashes my program on runtime just by declaring the object. And Date objects just don't seem to want to instantiate.
Now, I readily admit that both of those problems could possibly be solved by just declaring them correctly (most of my training has been in Java, so the transition can prove tricky at times).
This is how I've tried SYSTEMTIME
Code:
#include "ATLComTime.h"
SYSTEMTIME SystemTime;
getSystemTime(&SystemTime);
and for Date
Code:
dateObj d;
d = new Date();
Any help on either of those or new suggestions would be greatly appreciated.