Time Class Issues


#1

Is there anything special I should be doing with the Time class? I tried calling the ToMilliseconds() function, as I’m trying to time some calculations, and it returns 0 every time. I decided to test the other functions, such as getMonth and getYear, and its returning wrong years and days and whatnot (1969!). My MacBook Air’s date and time are correct to my knowledge, what am I missing?


#2

Sounds like you used an uninitilized Time instance (e.g. Time time;) instead of something like
Time time(Time::getCurrentTime());.


#3

That was it! Thanks a ton, much appreciated!