here is my code:
struct cc_timeval now; CCTime::gettimeofdayCocos2d(&now, NULL); long secTime = now.tv_sec * 1000 + now.tv_usec / 1000;
when I print this secTime variable in console,the secTime value get smaller and smaller....it's not correct...
when i change the system time of device to other months, the secTime value get bigger and bigger.
so please tell me why the time issue.
Thanks in advance!
Atom PDF
0%
here is my code:
when I print this secTime variable in console,the secTime value get smaller and smaller....it's not correct...
when i change the system time of device to other months, the secTime value get bigger and bigger.
so please tell me why the time issue.
Thanks in advance!