android 获取系统时间

int  getCurrentTime()
{
    struct timeval tv;
    gettimeofday(&tv,NULL);
    long  time=tv.tv_sec * 1000 + tv.tv_usec / 1000;
 long  end=  1525318113;
    long  sum =time/1000;


    return -1;
}

猜你喜欢

转载自blog.csdn.net/www5256246/article/details/80180691