Time Class Issues


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?


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


That was it! Thanks a ton, much appreciated!