Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

util/log: improve time prefix #2052

Merged
merged 1 commit into from Mar 6, 2020
Merged

Conversation

emersion
Copy link
Member

@emersion emersion commented Mar 5, 2020

This is useful when debugging a rendering loop.

@emersion
Copy link
Member Author

emersion commented Mar 5, 2020

BTW, maybe we should consider dropping the current date (the YYYY-MM-DD part) to get a smaller log prefix.

emersion added a commit to emersion/sway that referenced this pull request Mar 5, 2020
@ddevault
Copy link
Member

ddevault commented Mar 6, 2020

BTW, maybe we should consider dropping the current date (the YYYY-MM-DD part) to get a smaller log prefix.

Agreed. Maybe we should log a monotonic clock in terms of seconds since the compositor began?

Log milliseconds. This is useful when debugging a rendering loop.

Print the time relative to the compositor start-up.
@emersion emersion force-pushed the log-with-ms branch 2 times, most recently from 6966369 to 7812224 Compare March 6, 2020 23:22
@emersion
Copy link
Member Author

emersion commented Mar 6, 2020

Good idea, changed the commit to do that.

@emersion emersion changed the title util/log: log current time with milliseconds util/log: improve time prefix Mar 6, 2020
@ddevault ddevault merged commit e7f8cc6 into swaywm:master Mar 6, 2020
@ddevault
Copy link
Member

ddevault commented Mar 6, 2020

Thanks!

emersion added a commit to emersion/sway that referenced this pull request Mar 6, 2020
emersion added a commit to emersion/sway that referenced this pull request Mar 6, 2020
ddevault pushed a commit to swaywm/sway that referenced this pull request Mar 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants