Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>reltimefloat

๐Ÿ“š Standard module for denops.vim
Go to Latest
function reltimefloat
import { reltimefloat } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

Return a Float that represents the time value of {time}. Example:

let start = reltime()
call MyFunction()
let seconds = reltimefloat(reltime(start))

See the note of reltimestr() about overhead. Also see profiling. If there is an error 0.0 is returned in legacy script, in Vim9 script an error is given.

Can also be used as a method:

reltime(start)->reltimefloat()

only available when compiled with the +reltime feature

Parameters

denops: Denops
time: unknown

Returns

Promise<number>