Skip to content
Snippets Groups Projects
Commit 778abb7c authored by Abseil Team's avatar Abseil Team Committed by katzdm
Browse files

Changes imported from Abseil "staging" branch:

  - 92c268e7400e97e201bfc15c85ed78ece4dd90a7 Add absl qualification to To{Int64,Double}Seconds() examp... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 92c268e7400e97e201bfc15c85ed78ece4dd90a7
Change-Id: I236517ec3623222fbd9b6a290b7ee3925fa68490
parent 9850abf2
No related branches found
No related tags found
No related merge requests found
...@@ -361,7 +361,7 @@ Duration Hours(T n) { ...@@ -361,7 +361,7 @@ Duration Hours(T n) {
// Example: // Example:
// //
// absl::Duration d = absl::Milliseconds(1500); // absl::Duration d = absl::Milliseconds(1500);
// int64_t isec = ToInt64Seconds(d); // isec == 1 // int64_t isec = absl::ToInt64Seconds(d); // isec == 1
int64_t ToInt64Nanoseconds(Duration d); int64_t ToInt64Nanoseconds(Duration d);
int64_t ToInt64Microseconds(Duration d); int64_t ToInt64Microseconds(Duration d);
int64_t ToInt64Milliseconds(Duration d); int64_t ToInt64Milliseconds(Duration d);
...@@ -383,7 +383,7 @@ int64_t ToInt64Hours(Duration d); ...@@ -383,7 +383,7 @@ int64_t ToInt64Hours(Duration d);
// Example: // Example:
// //
// absl::Duration d = absl::Milliseconds(1500); // absl::Duration d = absl::Milliseconds(1500);
// double dsec = ToDoubleSeconds(d); // dsec == 1.5 // double dsec = absl::ToDoubleSeconds(d); // dsec == 1.5
double ToDoubleNanoseconds(Duration d); double ToDoubleNanoseconds(Duration d);
double ToDoubleMicroseconds(Duration d); double ToDoubleMicroseconds(Duration d);
double ToDoubleMilliseconds(Duration d); double ToDoubleMilliseconds(Duration d);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment