Skip to main content

CurateClick

www.npmjs.com favicon

instant-rs

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

Check out instant-rs on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

简介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());```## 项目链接

Latest Weekly Picks

promptbuilder.cc favicon
Weekly Pick

Generate, optimize, test, and manage AI prompts in one place. Turn an idea into a ready-to-use prompt in seconds.

Prompt Builder
freqz.net favicon
Weekly Pick

Your Personal K-Style Vibe Photo Studio

Freqz
webleadr.com favicon
Weekly Pick

Find and contact web design leads and businesses without websites, like local dentists, effortlessly from any location in just a few clicks.

Webleadr

the art of having something to say

pretty-scale.com favicon
Weekly Pick

How Pretty Are You? Let AI Decide.

Pretty Scale
c2story.com favicon
Weekly Pick

Create Illustrated Stories with AI

C2story

Impromptu Speech Topics & Timer

Seedance 2.0: Multimodal AI video creator. Precisely direct characters and cameras to create production-ready, multi-shot cinematic stories in one click.