[#absl-Nanoseconds-06] = xref:absl.adoc[absl]::Nanoseconds :relfileprefix: ../ :mrdocs: `Nanoseconds` overloads == Synopses Declared in `<absl/time/time.h>` Constructs a `Duration` from a floating‐point number of nanoseconds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, /* implementation-defined */ = 0> xref:absl/Duration.adoc[Duration] xref:absl/Nanoseconds-05.adoc[Nanoseconds](T n); ---- [.small]#xref:absl/Nanoseconds-05.adoc[_» more..._]# Constructs a `Duration` from an integral number of nanoseconds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, /* implementation-defined */ = 0> constexpr xref:absl/Duration.adoc[Duration] xref:absl/Nanoseconds-0a.adoc[Nanoseconds](T n); ---- [.small]#xref:absl/Nanoseconds-0a.adoc[_» more..._]# == Return Value A duration of `n` nanoseconds. == Parameters [cols="1,4"] |=== | Name| Description | *n* | The number of nanoseconds. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#