<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_ip_metadata_get_receive_time(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@F@nw_ip_metadata_get_receive_time"
  },
  "title" : "nw_ip_metadata_get_receive_time(_:)"
}
-->

# nw_ip_metadata_get_receive_time(_:)

Access the time at which a packet was received, in nanoseconds, based on `CLOCK_MONOTONIC_RAW`.

```
func nw_ip_metadata_get_receive_time(_ metadata: nw_protocol_metadata_t) -> UInt64
```

## See Also

[`nw_ip_options_set_calculate_receive_time(_:_:)`](/documentation/Network/nw_ip_options_set_calculate_receive_time(_:_:))

Configures a connection to deliver receive timestamps for IP packets.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)