bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61667: 29.0.60; Failure to redisplay


From: Dmitry Gutov
Subject: bug#61667: 29.0.60; Failure to redisplay
Date: Fri, 24 Feb 2023 23:49:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 24/02/2023 23:19, Eli Zaretskii wrote:
Date: Fri, 24 Feb 2023 23:03:12 +0200
Cc:luangruo@yahoo.com,61667@debbugs.gnu.org,gregory@heytings.org
From: Dmitry Gutov<dgutov@yandex.ru>

+int64_t now_millis() {
+  struct timespec now;
+  timespec_get(&now, TIME_UTC);
+
+  return ((int64_t) now.tv_sec) * 1000 + ((int64_t) now.tv_nsec) / 1000;
                                                                       ^^^^
That 1000 should be 1000000, right?

Right, sorry. I misread it in the doc for "microseconds".

The result makes no difference, though: now only zeros are printed (and sometimes 1):

[x_set_name] time to x_set_name_internal: 0
[x_set_name] time to x_set_name_internal: 0

So the calls take < 1ms.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]