EliasOenal / multimon-ng

GNU General Public License v2.0
923 stars 206 forks source link

Timestamp output for file inputs? #186

Open cchadowitz opened 2 years ago

cchadowitz commented 2 years ago

I noticed that there is a --timestamp option that does the following: "Add a time stamp in front of every printed line"

However it seems that this adds the system timestamp at the time of decoding. If the input is a file and not a stream, would it be possible to instead print the timestamp of the location in the audio file that was decoded (maybe the sample number or something similar)? In this case, the system time when decoding isn't particular useful, but I would still like to be able to identify at what point in the audio file a particular signal was decoded.

I'm happy to patch this in myself, I'm just not familiar with how or where this would go, so any suggestions are more than welcome!