:orphan: .. title:: CONFIG_NET_PKT_TXTIME_STATS .. kconfig:: CONFIG_NET_PKT_TXTIME_STATS CONFIG_NET_PKT_TXTIME_STATS ########################### *Enable network packet TX time statistics* Type: ``bool`` Help ==== .. code-block:: none Enable network packet TX time statistics support. This is used to calculate how long on average it takes for a packet to travel from application to just before it is sent to network. The TX timing information can then be seen in network interface statistics in net-shell. The RX calculation is done only for UDP, TCP or RAW packets, but for TX we do not know the protocol so the TX packet timing is done for all network protocol packets. Direct dependencies =================== (\ :kconfig:`NET_UDP ` || \ :kconfig:`NET_TCP ` || \ :kconfig:`NET_SOCKETS_PACKET `) && \ :kconfig:`NET_NATIVE ` && \ :kconfig:`NETWORKING ` *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Symbols selected by this symbol =============================== - \ :kconfig:`NET_PKT_TIMESTAMP ` - \ :kconfig:`NET_STATISTICS ` Kconfig definition ================== At ``/net/ip/Kconfig:802`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:39`` → ``/net/Kconfig:87`` Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → IP stack .. code-block:: kconfig config NET_PKT_TXTIME_STATS bool "Enable network packet TX time statistics" select NET_PKT_TIMESTAMP select NET_STATISTICS depends on (NET_UDP || NET_TCP || NET_SOCKETS_PACKET) && NET_NATIVE && NETWORKING help Enable network packet TX time statistics support. This is used to calculate how long on average it takes for a packet to travel from application to just before it is sent to network. The TX timing information can then be seen in network interface statistics in net-shell. The RX calculation is done only for UDP, TCP or RAW packets, but for TX we do not know the protocol so the TX packet timing is done for all network protocol packets. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*