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

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

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments Created 4 years, 8 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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ~LogMessage(); 140 ~LogMessage();
141 141
142 static inline bool Loggable(LoggingSeverity sev) { return (sev >= min_sev_); } 142 static inline bool Loggable(LoggingSeverity sev) { return (sev >= min_sev_); }
143 std::ostream& stream() { return print_stream_; } 143 std::ostream& stream() { return print_stream_; }
144 144
145 // Returns the time at which this function was called for the first time. 145 // Returns the time at which this function was called for the first time.
146 // The time will be used as the logging start time. 146 // The time will be used as the logging start time.
147 // If this is not called externally, the LogMessage ctor also calls it, in 147 // If this is not called externally, the LogMessage ctor also calls it, in
148 // which case the logging start time will be the time of the first LogMessage 148 // which case the logging start time will be the time of the first LogMessage
149 // instance is created. 149 // instance is created.
150 static uint32_t LogStartTime(); 150 static int64_t LogStartTime();
151 151
152 // Returns the wall clock equivalent of |LogStartTime|, in seconds from the 152 // Returns the wall clock equivalent of |LogStartTime|, in seconds from the
153 // epoch. 153 // epoch.
154 static uint32_t WallClockStartTime(); 154 static uint32_t WallClockStartTime();
155 155
156 // LogThreads: Display the thread identifier of the current thread 156 // LogThreads: Display the thread identifier of the current thread
157 static void LogThreads(bool on = true); 157 static void LogThreads(bool on = true);
158 158
159 // LogTimestamps: Display the elapsed time of the program 159 // LogTimestamps: Display the elapsed time of the program
160 static void LogTimestamps(bool on = true); 160 static void LogTimestamps(bool on = true);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 #define PLOG(sev, err) \ 347 #define PLOG(sev, err) \
348 LOG_ERR_EX(sev, err) 348 LOG_ERR_EX(sev, err)
349 349
350 // TODO(?): Add an "assert" wrapper that logs in the same manner. 350 // TODO(?): Add an "assert" wrapper that logs in the same manner.
351 351
352 #endif // LOG 352 #endif // LOG
353 353
354 } // namespace rtc 354 } // namespace rtc
355 355
356 #endif // WEBRTC_BASE_LOGGING_H_ 356 #endif // WEBRTC_BASE_LOGGING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698