what is substitute for [[NSDate date] timeIntervalSince1970] in android?

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. :frowning:

finally I able to work around it, following is the solution for the same: :smiley:
need to add <time.h>

double Timer::getCurrentTimeFromTimer()
{
time_t rawtime;
time ( &rawtime );
return (double)rawtime;
}