2 releases
Uses old Rust 2015
0.1.1 | Aug 7, 2016 |
---|---|
0.1.0 | Aug 6, 2016 |
#11 in #hi
7KB
timestamp
@bendem wrote a program like this in C++, so I wanted to write my own version in Rust for funsies.
Default format is %c, but you can change it by passing in any arg.
% {echo 'Hi'; sleep 2; echo 'Hi again'} | timestamp
[Sat Aug 6 17:04:57 2016] Hi
[Sat Aug 6 17:04:59 2016] Hi again
% {echo 'Hi'; sleep 2; echo 'Hi again'} | timestamp '%S'
[11] Hi
[13] Hi again
Dependencies
~0.6–1MB
~15K SLoC