Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: webrtc/base/timeutils.h

Issue 2290203002: Delete Timing class, timing.h, and update all users. (Closed)
Patch Set: Address nits. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
hbos 2016/09/08 07:50:43 Comment about it being the wall clock and that it
nisse-webrtc 2016/09/08 09:07:14 I've added a comment on proper and improper use.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698