https://github.com/peaceiris/tss
Annotate stdin with timestamps per line. A Go port of moreutils/ts and fork of kevinburke/tss.
https://github.com/peaceiris/tss
Last synced: 9 months ago
JSON representation
Annotate stdin with timestamps per line. A Go port of moreutils/ts and fork of kevinburke/tss.
- Host: GitHub
- URL: https://github.com/peaceiris/tss
- Owner: peaceiris
- License: mit
- Created: 2020-12-25T11:38:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T21:30:14.000Z (about 1 year ago)
- Last Synced: 2025-06-15T18:04:23.350Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 267 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## tss
Annotate stdin with timestamps per line.
A Go port of [moreutils](https://joeyh.name/code/moreutils/)/ts and fork of [kevinburke/tss].
[kevinburke/tss]: https://github.com/kevinburke/tss
`tss` is like `ts` from moreutils,
but prints relative durations (with millisecond precision) by default,
and can be shipped as a compiled binary.
Try it out:
```console
$ (sleep 1; echo "hello"; sleep 2; echo "two sec") | tss
1.00s 1.00s hello
3.01s 2.01s two sec
```
The first column is the amount of time that has elapsed since the program started.
The second column is the amount of time that has elapsed since the last line printed.

Note that: The demo has been created with the old docker version. The log format of `docker build` is different from the latest version.
[](https://github.com/peaceiris/tss/blob/main/LICENSE)
[](https://github.com/peaceiris/tss/releases/latest)
[](https://github.com/peaceiris/tss/releases)
[](https://github.com/peaceiris/tss/releases.atom)


[](https://goreportcard.com/report/github.com/peaceiris/tss)
[](https://www.codefactor.io/repository/github/peaceiris/tss)
[](https://codeclimate.com/github/peaceiris/tss/maintainability)
[](https://codecov.io/gh/peaceiris/tss)
## Installation
### Homebrew
For macOS and Linux.
```sh
brew install peaceiris/tap/tss
```
[peaceiris/homebrew-tap/tss.rb](https://github.com/peaceiris/homebrew-tap/blob/main/Formula/tss.rb)
### Binary
[Releases · peaceiris/tss](https://github.com/peaceiris/tss/releases)