Function js::jsapi::JS_SetCurrentEmbedderTimeFunction [] [src]

pub unsafe extern "C" fn JS_SetCurrentEmbedderTimeFunction(
    timeFn: JS_CurrentEmbedderTimeFunction
)

The embedding can specify a time function that will be used in some situations. The function can return the time however it likes; but the norm is to return times in units of milliseconds since an arbitrary, but consistent, epoch. If the time function is not set, a built-in default will be used.