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
pull/43/head^2
Abseil Team 7 years ago committed by katzdm
parent 9850abf25d
commit 778abb7c27
  1. 4
      absl/time/time.h

@ -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);
@ -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);

Loading…
Cancel
Save