/*
 * static long nanoTime()
 *
 * Current monotonically-increasing time, in nanoseconds.  This doesn't
 * need to be internal to the VM, but we're already handling
 * java.lang.System here.
 */
static void Dalvik_java_lang_System_nanoTime(const u4* args, JValue* pResult)
{
    UNUSED_PARAMETER(args);

    u8 when = dvmGetRelativeTimeNsec();
    RETURN_LONG(when);
}
Beispiel #2
0
jlonglong fastiva_Dalvik_java_lang_System_nanoTime() {
#endif

    u8 when = dvmGetRelativeTimeNsec();
    RETURN_LONG(when);
}