UNPKG

rdtsc

Version:

The most high resolution cross platform timing in NodeJs that use processor command RDTSC. Calculate performance with accuracy +/- 4 processor cycles.

6 lines (5 loc) 266 B
import { Rdtsc } from "./types"; export declare const rdtsc: () => bigint; export declare function runInRealtimePriority<T>(func: () => Promise<T>): Promise<T>; export declare function runInRealtimePriority<T>(func: () => T): T; export declare const rdtscJs: Rdtsc;