Skip to content

Commit

Permalink
Changes imported from Abseil "staging" branch:
Browse files Browse the repository at this point in the history
  - 92c268e7400e97e201bfc15c85ed78ece4dd90a7 Add absl qualification to To{Int64,Double}Seconds() examp... by Abseil Team <[email protected]>

GitOrigin-RevId: 92c268e7400e97e201bfc15c85ed78ece4dd90a7
Change-Id: I236517ec3623222fbd9b6a290b7ee3925fa68490
  • Loading branch information
Abseil Team authored and katzdm committed Nov 9, 2017
1 parent 9850abf commit 778abb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions absl/time/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Duration Hours(T n) {
// Example:
//
// 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 ToInt64Microseconds(Duration d);
int64_t ToInt64Milliseconds(Duration d);
Expand All @@ -383,7 +383,7 @@ int64_t ToInt64Hours(Duration d);
// Example:
//
// 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 ToDoubleMicroseconds(Duration d);
double ToDoubleMilliseconds(Duration d);
Expand Down

0 comments on commit 778abb7

Please sign in to comment.