Add System Time

From GNU Radio
Jump to: navigation, search

Adds system time to a PDU's metadata.
Added in 3.10

This block adds a user specified key to PDU dict containing the boost system time in seconds since unix epoch (00:00:00 UTC on 1 January 1970).

Caveats[edit]

Note that the computer's clock that this time comes from is in general not synchronized to the sampling clock of the SDR you might be using. That means, for example, that the timestamps for two PDUs that are (logically) N samples apart do not necessarily differ by N/(sample rate). The notion of different devices with different clocks of time is not deterministic!

Parameters[edit]

(R): Run-time adjustable

Key
default: "system_time"

Messages[edit]

Inputs[edit]

pdu
input message

Outputs[edit]

pdu
output message

Example Flowgraph[edit]

This flowgraph can be found at [1]

Pdu tools demo fg.png

Source Files[edit]

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
[2]