[#absl-ToInt64Nanoseconds]
= xref:absl.adoc[absl]::ToInt64Nanoseconds
:relfileprefix: ../
:mrdocs:

Converts a Duration to an integral count of nanoseconds&period;

== Synopsis

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int64&lowbar;t
ToInt64Nanoseconds(xref:absl/Duration.adoc[Duration] d);
----

== Description

Helper functions that convert a Duration to an integral count of the indicated unit&period; These return the same results as the `IDivDuration()` function, though they usually do so more efficiently&semi; see the documentation of `IDivDuration()` for details about overflow, etc&period;

Example&colon;

absl&colon;&colon;Duration d &equals; absl&colon;&colon;Milliseconds(1500)&semi; int64&lowbar;t isec &equals; absl&colon;&colon;ToInt64Seconds(d)&semi; &sol;&sol; isec &equals;&equals; 1

== Return Value

The number of whole nanoseconds in `d`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *d*
| The duration to convert&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
