multi-automator
Version:
Multi terminal automation
19 lines (18 loc) • 424 B
TypeScript
/**
* @desc: time operate
* @author: john_chen
* @date: 2023.03.13
*/
/**
* 延时
*
* @param {number} ms 毫秒
*/
export declare const delay: (ms: number) => Promise<unknown>;
/**
* 获取当前时间的时间戳(ms/s)
*
* @param {string} type 时间戳类型,毫秒/秒,默认 ms
* @return {number} 当前时间的时间戳(ms/s)
*/
export declare function currentTimestamp(type?: string): number;