Paresh
#1
Hi,
I am porting my Cocos2d-X iOS project to Android platform. I am using following code in iOS front to calculate time values:
beg = [[NSDate date] timeIntervalSince1970];
how can I port above code in Android?
I checked timer class but it didn’t work out.
Paresh
#2
finally I able to work around it, following is the solution for the same:
need to add <time.h>
double Timer::getCurrentTimeFromTimer()
{
time_t rawtime;
time ( &rawtime );
return (double)rawtime;
}