forsyth20121205-174063a80cc13 years agoHistory
36 lines · 888 B · Text
RawDownload
.TH TIMESTAMP 1.SH NAMEtimestamp \- log event times.SH SYNOPSIS.B timestamp[.I tag].SH DESCRIPTION.I Timestampreads lines from its standard input and writes them to itsstandard output, prefixing each line with the time thatit was written, in decimal milliseconds since.I timestampwas started. If.I tagis given, it is written along with the time stamp on each line,to enable tagging if several writers are each writingto the same log file..PPThe first line written gives the time that.I timestampwas started, in milliseconds since the epoch.Note that logging events can cause timings to change,and that the timestamps are only as accurate as thetimes reported by.BR /dev/time ..SH SOURCE.B /appl/cmd/timestamp.b.SH EXAMPLE.EX% {echo hello; sleep 1; echo goodbye} | timestamp eg0000000000 eg start 10801561394680000000007 eg hello0000000988 eg goodbye.EE