diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-01-26 17:09:53 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-03-24 16:37:54 +0000 |
commit | 436745ea87a642789b5960eae7efd8d1e09eb512 (patch) | |
tree | cd3f6f7d45eab2ed1d82c9917efcbf10a3f0e9f1 /sal | |
parent | 1d875b385f125542c12b3935561f5b3fef72c956 (diff) |
Write-queue timestamped debugging.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/log.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index 67e384cb6fcd..c62b1e06bfbd 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -240,6 +240,9 @@ void log( syslog(prio, "%s", s.str().c_str()); #endif } else { + TimeValue pTime = { 0, 0 }; + osl_getSystemTime(&pTime); + std::fprintf(stderr, "T%ld.%.9ld - ", (long)pTime.Seconds, (long)pTime.Nanosec); std::fputs(s.str().c_str(), stderr); std::fflush(stderr); } |