MCPcopy Create free account
hub / github.com/esengine/esengine / now

Method now

packages/engine/src/platform/web.rs:133–139  ·  view source on GitHub ↗

Get current timestamp in milliseconds. 获取当前时间戳(毫秒)。

()

Source from the content-addressed store, hash-verified

131 /// Get current timestamp in milliseconds.
132 /// 获取当前时间戳(毫秒)。
133 pub fn now() -> f64 {
134 let window = web_sys::window().expect("No window found");
135 window
136 .performance()
137 .expect("No performance object")
138 .now()
139 }
140
141 /// Log a message to the console.
142 /// 向控制台输出消息。

Callers 15

createAssetMetaFunction · 0.80
updateMetaMethod · 0.80
packMethod · 0.80
_packBundleMethod · 0.80
addLayerMethod · 0.80
duplicateLayerMethod · 0.80
processMethod · 0.80
constructorMethod · 0.80
beginFrameMethod · 0.80
endFrameMethod · 0.80
onMouseDownMethod · 0.80
onMouseMoveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected