mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
C: fix System.nanoTime
This commit is contained in:
parent
63bbb35cb1
commit
8749ecd0d1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user