If you spend any time working in the terminal, you know the power of seeing data flow in real time. Log tails, live metrics, build outputs — they all tell a story as it happens. But what if you could take that concept further? What if you could print, filter, and transform terminal output with microsecond precision, directly from streaming data sources?
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
[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): If you spend any time working in the
tsprint --help Let’s simulate a sensor emitting temperature readings every 50ms, and use tsprint to see exactly when each reading arrives: What if you could print, filter, and transform
Basic usage:
— because when you’re chasing microseconds, your tools can’t afford to blur them. Have you used timestamping tools in high‑throughput pipelines? Share your setup below or tag us with #tsprint.