aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/webcore.zig')
-rw-r--r--src/bun.js/webcore.zig36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/bun.js/webcore.zig b/src/bun.js/webcore.zig
index 0433402fc..981e15c8f 100644
--- a/src/bun.js/webcore.zig
+++ b/src/bun.js/webcore.zig
@@ -92,39 +92,3 @@ pub const Crypto = struct {
return JSC.ZigString.init(str).toValueGC(ctx.ptr()).asObjectRef();
}
};
-
-pub const Performance = struct {
- pub const Class = JSC.NewClass(
- void,
- .{
- .name = "performance",
- .read_only = true,
- },
- .{
- .now = .{
- .rfn = Performance.now,
- },
- },
- .{},
- );
-
- pub fn now(
- _: void,
- ctx: JSC.C.JSContextRef,
- _: JSC.C.JSObjectRef,
- _: JSC.C.JSObjectRef,
- _: []const JSC.C.JSValueRef,
- _: JSC.C.ExceptionRef,
- ) JSC.C.JSValueRef {
- return JSC.C.JSValueMakeNumber(
- ctx,
- @floatCast(
- f64,
- @intToFloat(
- f128,
- JSC.VirtualMachine.vm.origin_timer.read(),
- ) / std.time.ns_per_ms,
- ),
- );
- }
-};