[14:23:05.123456] "type":"ping" [14:23:05.123478] "type":"pong" Notice the 22‑microsecond delta — perfect for race condition analysis. for i in 1..100; do echo "data $i"; sleep 0.01; done | \ tsprint --timestamp --relative | \ grep "data 50" 3. High‑volume log tailing with rate limiting tail -f /var/log/nginx/access.log | tsprint --rate 10 --format json Only 10 lines per second reach your terminal, but every timestamp remains accurate. How tsprint differs from ts (moreutils) | Feature | ts (moreutils) | tsprint | |-----------------------|------------------------|----------------------------| | Timestamp precision | Second | Nanosecond | | Output formats | Plain text | JSON, CSV, custom template | | Non‑blocking I/O | No | Yes | | Rate limiting | No | Yes | | Real‑time streaming focus | Partial | Designed for it | Getting started Install tsprint (assuming it’s packaged or available via cargo/go):
Basic usage:
Enter . What is tsprint? tsprint is a lightweight terminal utility designed for high-resolution timestamping and live stream manipulation. While traditional commands like echo , printf , or even ts from moreutils get the job done for basic needs, tsprint focuses on real-time, low-latency output with millisecond or microsecond accuracy — making it invaluable for debugging event-driven systems, monitoring pipelines, and benchmarking. tsprint terminal works
tsprint --help Let’s simulate a sensor emitting temperature readings every 50ms, and use tsprint to see exactly when each reading arrives: [14:23:05