[#absl-ToInt64Nanoseconds] = xref:absl.adoc[absl]::ToInt64Nanoseconds :relfileprefix: ../ :mrdocs: Converts a Duration to an integral count of nanoseconds. == Synopsis Declared in `<absl/time/time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int64_t ToInt64Nanoseconds(xref:absl/Duration.adoc[Duration] d); ---- == Description Helper functions that convert a Duration to an integral count of the indicated unit. These return the same results as the `IDivDuration()` function, though they usually do so more efficiently; see the documentation of `IDivDuration()` for details about overflow, etc. Example: absl::Duration d = absl::Milliseconds(1500); int64_t isec = absl::ToInt64Seconds(d); // isec == 1 == Return Value The number of whole nanoseconds in `d`. == Parameters [cols="1,4"] |=== | Name| Description | *d* | The duration to convert. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#