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

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: Add TODO for timestamp. Created 4 years, 7 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
« no previous file with comments | « webrtc/base/gunit.h ('k') | webrtc/base/logging.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ~LogMessage(); 149 ~LogMessage();
150 150
151 static inline bool Loggable(LoggingSeverity sev) { return (sev >= min_sev_); } 151 static inline bool Loggable(LoggingSeverity sev) { return (sev >= min_sev_); }
152 std::ostream& stream() { return print_stream_; } 152 std::ostream& stream() { return print_stream_; }
153 153
154 // Returns the time at which this function was called for the first time. 154 // Returns the time at which this function was called for the first time.
155 // The time will be used as the logging start time. 155 // The time will be used as the logging start time.
156 // If this is not called externally, the LogMessage ctor also calls it, in 156 // If this is not called externally, the LogMessage ctor also calls it, in
157 // which case the logging start time will be the time of the first LogMessage 157 // which case the logging start time will be the time of the first LogMessage
158 // instance is created. 158 // instance is created.
159 static uint32_t LogStartTime(); 159 static int64_t LogStartTime();
160 160
161 // Returns the wall clock equivalent of |LogStartTime|, in seconds from the 161 // Returns the wall clock equivalent of |LogStartTime|, in seconds from the
162 // epoch. 162 // epoch.
163 static uint32_t WallClockStartTime(); 163 static uint32_t WallClockStartTime();
164 164
165 // LogThreads: Display the thread identifier of the current thread 165 // LogThreads: Display the thread identifier of the current thread
166 static void LogThreads(bool on = true); 166 static void LogThreads(bool on = true);
167 167
168 // LogTimestamps: Display the elapsed time of the program 168 // LogTimestamps: Display the elapsed time of the program
169 static void LogTimestamps(bool on = true); 169 static void LogTimestamps(bool on = true);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 #define PLOG(sev, err) \ 356 #define PLOG(sev, err) \
357 LOG_ERR_EX(sev, err) 357 LOG_ERR_EX(sev, err)
358 358
359 // TODO(?): Add an "assert" wrapper that logs in the same manner. 359 // TODO(?): Add an "assert" wrapper that logs in the same manner.
360 360
361 #endif // LOG 361 #endif // LOG
362 362
363 } // namespace rtc 363 } // namespace rtc
364 364
365 #endif // WEBRTC_BASE_LOGGING_H_ 365 #endif // WEBRTC_BASE_LOGGING_H_
OLDNEW
« no previous file with comments | « webrtc/base/gunit.h ('k') | webrtc/base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698