Skip to main content

instant-rs

npmjs.com

一个比 console.time 更好的耗时度量工具,提供更友好的时间格式显示,采用 Rust API 设计,并解决了 console.time 需要重复写 label 的问题。

Developer Tools & APIsOpen source#performance-monitoring#rust-api#timing
Visit website

简介A better 比 console.time 更好的耗时度量工具,将耗时转成可读性更好的格式,采用 Rust API 设计,同时解决 console.time label 需要写两次问题。## 效果`1337000000ms => '15d 11h 23m 20s'````jsimport Instant from 'instant-rs'const now = Instant.now();// 执行耗时操作await doSthExpensive()console.log("time costs", now.elapsed());```## 项目链接

More in Developer Tools & APIs

SolveHub

API for CAPTCHA and anti-bot tasks in authorized testing

Dev Tools ·

liarjs.dev

Scanner that cross-checks browser JavaScript fingerprint against network layer

Dev Tools ·

AntiBrow

Antidetect browser for managing multiple browser identities with real-device

Dev Tools ·

HostlessWP

Open source CLI to move WordPress to Cloudflare Workers

Dev Tools ·

deed.page

Permanent web hosting with an API for AI agents

Dev Tools ·

Rowflare

Open-source Airtable alternative running on your Cloudflare account

Dev Tools ·