On Fri, 27 Feb 2015 15:19:45 +0100 Tobias Abt wrote:
TA> So from what I gathered it is not possible to add (the correct)
TA> milliseconds to the timestamp: The time is set in the constructor of
TA> wxLogRecordInfo and if 'time_t' does not provide the necessary
TA> accuracy, it makes little sense to add a different time later. Well, it
TA> would do for the main-thread, but as soon as another thread starts
TA> logging, the time is completely wrong (about 1s on my machine).
TA>
TA> Or am I missing something?
wxLog functions only use time_t, but you also have a possibility to
associate arbitrary values in the log records, so you could use this to
store a higher precision timestamp in addition to time_t. It won't be as
seamless as just using time_t but should definitely work.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/