Skip to content

Commit da649bd

Browse files
[MERGE #1265 @digitalinfinity] Remove timestamp printing from LeakReport
Merge pull request #1265 from digitalinfinity:simplify_leakreport
2 parents 17a37e2 + d009022 commit da649bd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/Common/Memory/LeakReport.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,6 @@ LeakReport::EnsureLeakReportFile()
153153
Print(_u("================================================================================\n"));
154154
Print(_u("Chakra Leak Report - PID: %d\n"), ::GetCurrentProcessId());
155155

156-
struct tm local_time;
157-
uint64 time_ms = (uint64) PlatformAgnostic::DateTime::HiResTimer::GetSystemTime(); // utc
158-
#ifdef _MSC_VER
159-
__time64_t time_sec = time_ms / 1000; // get rid of the milliseconds
160-
_localtime64_s(&local_time, &time_sec);
161-
#else
162-
time_t time_sec = time_ms / 1000; // get rid of the milliseconds
163-
localtime_r(&time_sec, &local_time);
164-
#endif
165-
Print(_u("%04d-%02d-%02d %02d:%02d:%02d.%03d\n"),
166-
local_time.tm_year + 1900, local_time.tm_mon + 1, local_time.tm_mday,
167-
local_time.tm_hour, local_time.tm_min, local_time.tm_sec,
168-
time_ms % 1000);
169-
170156
return true;
171157
}
172158

0 commit comments

Comments
 (0)