From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode,gmane.comp.lib.gnulib.bugs Subject: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones Date: Wed, 20 Apr 2022 22:30:21 +0300 Message-ID: <83czhbsgc2.fsf@gnu.org> References: <5ed963b2-3fa8-48d8-627e-bc0571d15b43@gmail.com> <149de00f-115b-5367-414f-c7700ef8966b@cs.ucla.edu> <2dd15844-01b3-0144-740c-185ec8488a81@cs.ucla.edu> <4a23f3a4-fe8f-d396-49d8-10034803be63@gmail.com> <52fb10fb-892a-f273-3be8-28793f27e204@cs.ucla.edu> <5cd820d4-ae67-43d4-9e63-c284d51ff1e4@gmail.com> <83tuapvcxs.fsf@gnu.org> <6efc5d24-34a2-fd30-cd20-fe4ac3e48310@cs.ucla.edu> <83fsm8tdzl.fsf@gnu.org> <9e4781b2-2ffa-b1ce-09b4-ead82cad9038@cs.ucla.edu> <83ilr3siku.fsf@gnu.org> <4e41671c-fae8-61c4-845c-4c7ba4317e88@cs.ucla.edu> <83fsm7sh2s.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5182"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-orgmode@gnu.org, manikulin@gmail.com, bug-gnulib@gnu.org, 54764@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 20 21:54:41 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhGPQ-0001CS-Ot for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Apr 2022 21:54:40 +0200 Original-Received: from localhost ([::1]:43316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhGPP-0006xe-ON for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Apr 2022 15:54:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhG2Y-0006KB-Ft for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 15:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhG2Y-0005Tf-6Q for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 15:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhG2Y-0001Og-28 for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 15:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2022 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54764-submit@debbugs.gnu.org id=B54764.16504830375328 (code B ref 54764); Wed, 20 Apr 2022 19:31:02 +0000 Original-Received: (at 54764) by debbugs.gnu.org; 20 Apr 2022 19:30:37 +0000 Original-Received: from localhost ([127.0.0.1]:47540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhG29-0001Ns-7n for submit@debbugs.gnu.org; Wed, 20 Apr 2022 15:30:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhG27-0001Nd-RN for 54764@debbugs.gnu.org; Wed, 20 Apr 2022 15:30:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhG21-0005Qt-Lb; Wed, 20 Apr 2022 15:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ii4iG9/zZJp/M1A5E/sXfZAJ4V0ONgog6zZ7DkyfZjE=; b=RHvE9VLYvGWh bnTzrH9PY0yHOG1puj3+jWa0Ei++9zNl58p6fRNgo8+bYBxLuCY3/TXPMyDIp6InJcszzycv40Xuc fLE9hFGPMbZEf4K+bPtWiRVgjN/a7iAy+VimDlhfw1yfSXyt6H7lMsy4XFWRLyRCGFdH9gnFZY2vR CCsgHfQuvkuoapUCLjlCcCLPDXmKQfJPqnxgFgjXuuxHjT4OEqdPTSIq9iJ/Eaub9xoS6BHvjwpyI h8uLWAZdktVP/qgXnypwiqImbE3hou996XKyDNyoWD3Q847UI5NMMg6SRByZmGxMHIIYNhkcF3Z2R z/iDUkLHxsqAH58t1sYVLA==; Original-Received: from [87.69.77.57] (port=2363 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhG21-0001nB-4z; Wed, 20 Apr 2022 15:30:29 -0400 In-Reply-To: (message from Paul Eggert on Wed, 20 Apr 2022 12:23:43 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230333 gmane.emacs.orgmode:144640 gmane.comp.lib.gnulib.bugs:45801 Archived-At: > Date: Wed, 20 Apr 2022 12:23:43 -0700 > Cc: manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org, > bug-gnulib@gnu.org > From: Paul Eggert > > On 4/20/22 12:14, Eli Zaretskii wrote: > > Sorry, my bad. The result is the same, but I do get printouts. What > > do you want to know or see from there? > > I want to see what the current_timespec's resolution is, which we should > be able to tell from the debugging output. For example, on my Solaris 10 > sparc platform the command 'gltests/test-gettime-res x' outputs: > > gettime_res returned 200 ns > time = 1650482432.256445600 > time = 1650482432.256460600 > time = 1650482432.256464400 > time = 1650482432.256468200 > time = 1650482432.256471400 > time = 1650482432.256474600 > time = 1650482432.256478000 > time = 1650482432.256481200 > time = 1650482432.256484800 > ... > > and these timestamps say that with very high probability > current_timespec's clock resolution is indeed 200 ns. I see the time samples change in jumps of 15 msec. Which is expected on MS-Windows, given the scheduler time tick, but what does that have to do with the system's time resolution? And how is the 0.625 msec number reported by the program obtained from those samples?