OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2005 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2005 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 private: | 101 private: |
102 uint32_t last_ts_; | 102 uint32_t last_ts_; |
103 int64_t num_wrap_; | 103 int64_t num_wrap_; |
104 }; | 104 }; |
105 | 105 |
106 // Convert from std::tm, which is relative to 1900-01-01 00:00 to number of | 106 // Convert from std::tm, which is relative to 1900-01-01 00:00 to number of |
107 // seconds from 1970-01-01 00:00 ("epoch"). Don't return time_t since that | 107 // seconds from 1970-01-01 00:00 ("epoch"). Don't return time_t since that |
108 // is still 32 bits on many systems. | 108 // is still 32 bits on many systems. |
109 int64_t TmToSeconds(const std::tm& tm); | 109 int64_t TmToSeconds(const std::tm& tm); |
110 | 110 |
| 111 // Returns number of microseconds since January 1, 1970, UTC. |
| 112 int64_t TimeUTCMicros(); |
| 113 |
111 } // namespace rtc | 114 } // namespace rtc |
112 | 115 |
113 #endif // WEBRTC_BASE_TIMEUTILS_H_ | 116 #endif // WEBRTC_BASE_TIMEUTILS_H_ |
OLD | NEW |