Help needed to work out the timestamp in WINEDEBUG log

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
radome
Newbie
Newbie
Posts: 3
Joined: Mon May 11, 2020 11:43 pm

Help needed to work out the timestamp in WINEDEBUG log

Post by radome »

======================
Proton: 1588276332 proton-5.0-7
SteamGameId: 365960
Command: ['blahblah/.local/share/Steam/steamapps/common/rFactor 2/Launcher/Launch rFactor.exe']
Options: {'forcelgadd'}
======================
lines omitted

1298812.468:0028:002c:trace:module:load_builtin_callback loaded ntdll.dll 0x15d60 0x7bc20000

Hi,
If I take the 1588276332 above as a unix epoch time and add 1298812 seconds to it, I get a date 3 days in the future. What am I missing here?

Thank you,
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: Help needed to work out the timestamp in WINEDEBUG log

Post by spoon0042 »

It appears timestamp uses your box's uptime. 'cat /proc/uptime' should be similar.
radome
Newbie
Newbie
Posts: 3
Joined: Mon May 11, 2020 11:43 pm

Re: Help needed to work out the timestamp in WINEDEBUG log

Post by radome »

Thank you. Do you happen to know if there is a way to make it display the time another way?
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: Help needed to work out the timestamp in WINEDEBUG log

Post by spoon0042 »

It doesn't look like it, no. Well, short of hacking it to do something else anyway.
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: Help needed to work out the timestamp in WINEDEBUG log

Post by spoon0042 »

Or you could check /proc/uptime when you start wine then run the log through a script and subtract it from each timestamp (or however else you want). That way wouldn't require hacking and building wine yourself.
radome
Newbie
Newbie
Posts: 3
Joined: Mon May 11, 2020 11:43 pm

Re: Help needed to work out the timestamp in WINEDEBUG log

Post by radome »

Yes that worked alright. A little cumbersome but workable. Thanks agian.
Locked