|
From: Shai <sha...@ya...> - 2011-09-26 10:15:36
|
Minor but rather annoying, the seconds came out as ints which resulted in negative numbers when multiplied (see fix bellow).
JAVA_LONG java_lang_System_currentTimeMillis__()
{
//XMLVM_BEGIN_NATIVE[java_lang_System_currentTimeMillis__]
struct timeval now;
gettimeofday(&now, NULL);
JAVA_LONG msec = ((JAVA_LONG)now.tv_sec) * 1000;
msec += now.tv_usec / 1000;
return msec;
//XMLVM_END_NATIVE
} |