mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
render: presentation: space between value and "µs"
This commit is contained in:
parent
3912638141
commit
d3fc0fc21e
1 changed files with 3 additions and 3 deletions
6
render.c
6
render.c
|
|
@ -81,13 +81,13 @@ presented(void *data,
|
||||||
struct timeval diff;
|
struct timeval diff;
|
||||||
timersub(&commit, &input, &diff);
|
timersub(&commit, &input, &diff);
|
||||||
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
||||||
"input - %luµs -> ", diff.tv_usec);
|
"input - %lu µs -> ", diff.tv_usec);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct timeval diff;
|
struct timeval diff;
|
||||||
timersub(&presented, &commit, &diff);
|
timersub(&presented, &commit, &diff);
|
||||||
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
||||||
"commit - %luµs -> ", diff.tv_usec);
|
"commit - %lu µs -> ", diff.tv_usec);
|
||||||
|
|
||||||
if (use_input)
|
if (use_input)
|
||||||
timersub(&presented, &input, &diff);
|
timersub(&presented, &input, &diff);
|
||||||
|
|
@ -95,7 +95,7 @@ presented(void *data,
|
||||||
timersub(&presented, &commit, &diff);
|
timersub(&presented, &commit, &diff);
|
||||||
|
|
||||||
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
chars += snprintf(&msg[chars], sizeof(msg) - chars,
|
||||||
"presented (total: %luµs)", diff.tv_usec);
|
"presented (total: %lu µs)", diff.tv_usec);
|
||||||
|
|
||||||
unsigned frame_count = 0;
|
unsigned frame_count = 0;
|
||||||
if (tll_length(term->window->on_outputs) > 0) {
|
if (tll_length(term->window->on_outputs) > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue