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

Converts a Duration to a floating&hyphen;point count of nanoseconds&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
double
ToDoubleNanoseconds(xref:absl/Duration.adoc[Duration] d);
----

== Description

Helper functions that convert a Duration to a floating point count of the indicated unit&period; These functions are shorthand for the `FDivDuration()` function above&semi; see its documentation for details about overflow, etc&period;

Example&colon;

absl&colon;&colon;Duration d &equals; absl&colon;&colon;Milliseconds(1500)&semi; double dsec &equals; absl&colon;&colon;ToDoubleSeconds(d)&semi; &sol;&sol; dsec &equals;&equals; 1&period;5

== Return Value

The number of nanoseconds in `d`, including any fraction&period;

== Parameters

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


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