Add System Time: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(initial creation)
 
(Caveat: PC clock != SDR clock)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<code>Added in 3.10</code><br>
<code>Added in 3.10</code><br>


This block adds a user specified key to PDU dict containing the boost system time in seconds since unix epoch.
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 ==
 
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 ==
== Parameters ==

Latest revision as of 15:50, 13 December 2021

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

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

(R): Run-time adjustable

Key
default: "system_time"

Messages

Inputs

pdu
input message

Outputs

pdu
output message

Example Flowgraph

This flowgraph can be found at [1]

Pdu tools demo fg.png

Source Files

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