C: fix System.nanoTime

This commit is contained in:
Alexey Andreev 2019-10-01 18:45:42 +03:00
parent 63bbb35cb1
commit 8749ecd0d1

View File

@ -32,7 +32,6 @@ import org.teavm.interop.DelegateTo;
import org.teavm.interop.Import; import org.teavm.interop.Import;
import org.teavm.interop.NoSideEffects; import org.teavm.interop.NoSideEffects;
import org.teavm.interop.Unmanaged; import org.teavm.interop.Unmanaged;
import org.teavm.interop.c.Include;
import org.teavm.jso.browser.Performance; import org.teavm.jso.browser.Performance;
import org.teavm.runtime.Allocator; import org.teavm.runtime.Allocator;
import org.teavm.runtime.GC; import org.teavm.runtime.GC;
@ -272,7 +271,7 @@ public final class TSystem extends TObject {
private static native double nanoTimeWasm(); private static native double nanoTimeWasm();
@Import(name = "teavm_currentTimeNano") @Import(name = "teavm_currentTimeNano")
@Include("time.h") @RuntimeInclude("time.h")
private static native long nanoTimeLowLevel(); private static native long nanoTimeLowLevel();
public static int identityHashCode(Object x) { public static int identityHashCode(Object x) {