Well, I found this way to do it:
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.
struct tm* timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
f_Start_Time = (timeinfo->tm_hour + (timeinfo->tm_min)/60. + (timeinfo->tm_sec)/3600.);
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
and for Date
Any help on either of those or new suggestions would be greatly appreciated.
d = new Date();