Skip to main content
Module

x/ddc_vim/deps.ts>fn.reltime

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.reltime
import { fn } from "https://deno.land/x/ddc_vim@v0.0.13/deps.ts";
const { reltime } = fn;

Return an item that represents a time value. The format of the item depends on the system. It can be passed to |reltimestr()| to convert it to a string or |reltimefloat()| to convert to a Float. Without an argument it returns the current time. With one argument is returns the time passed since the time specified in the argument. With two arguments it returns the time passed between {start} and {end}. The {start} and {end} arguments must be values returned by reltime(). Can also be used as a |method|: GetStart()->reltime() {only available when compiled with the |+reltime| feature}

Parameters

denops: Denops
optional
start: unknown
optional
end: unknown

Returns

Promise<unknown>