Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66431 invoked from network); 2 Jan 2018 13:56:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2018 13:56:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.178 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-qk0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:40024] helo=mail-qk0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/A6-23177-49F8B4A5 for ; Tue, 02 Jan 2018 08:56:36 -0500 Received: by mail-qk0-f178.google.com with SMTP id q14so48692913qke.7 for ; Tue, 02 Jan 2018 05:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=n8OiisB7xNT+xtoVP5VBahtqB1NjmxCE0IPJFgwerzM=; b=GxiZ1sZZXyMdMi7HCEMkh+zCQUT+Au0xUWJf5QLtVSklliJXTwjLx22tuHl5swH2PX RUHOQ76m6cXBBS4MfRugac1oL8WLDYYd3Ko0bXr/nSFXTfIR9hf8IuHN+8mhufkkKWzb A8/7ZSUrg6EdNJFoG9jWQ+ST7szx1Bj0yGMWDzr7Ctn6T0SzlLYGLIXvm+/Vr5/VBfYb 4Y689HaKufKWad5CIfgNvWcJRm/RyiML18UcZ7AOy9GaF8p52p+xApYU/8L5/SX3JEy6 8tCaiJraHOkzHHEgD0I3kUU7CvaqVwzVQqMQmdE54FRG1sy3B3B8WtwNLH/xsHfy95pD a15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=n8OiisB7xNT+xtoVP5VBahtqB1NjmxCE0IPJFgwerzM=; b=AAJHGW9lUmCTUWOShccM0LEf7Mj5RG3tjGjCuxfu9veiqwqU91Uw+rq0nI/3A+z0s5 xYTE/VjJ2FKR/JPPR4fwCnxgfIwVFNK1qnSTsf/MpW/bxVOkJrp8eP50J+aW4dTnyuYm TzG9Cvd4VjnznGbPq4JZwitJrKyOcOICSzrvd0xjarfabnNAgXjB43FR0oRYPOITWpOp ais6MVLDC4ApKwzcQFnVGsJW/cNjv2Z0+OyddJ25rGb3ERY7q8NvMvukZoSGHF6Sf/sK XinCNNv2iSHpemS19XuRTVlmgjXFJeHEYbwZJ60Ta9YZcGpEtUr88pT/I01LyoltefdR w6Zg== X-Gm-Message-State: AKGB3mLMKjNa2lY/JVul4OeSPfLczKh3RU/NkEmia+/yMK5HXBFDnBit 9MBNOEyBEzQXeML+0FZfUIW9A0FqUwDq5oFquIk= X-Google-Smtp-Source: ACJfBovtsLp7fobJeM2iucUPI3cfpTNJLyoG10h0lqJQYwJNJzm0tcQOULPEhrW8rfsWjnDvxGpVz7t0qpE43E9H2Dk= X-Received: by 10.55.136.133 with SMTP id k127mr55405762qkd.150.1514901393285; Tue, 02 Jan 2018 05:56:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.85.213 with HTTP; Tue, 2 Jan 2018 05:55:52 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Jan 2018 13:55:52 +0000 Message-ID: To: Anatol Belski Cc: "internals@lists.php.net" , Niklas Keller Content-Type: multipart/alternative; boundary="94eb2c0727726aa63c0561cb7792" Subject: Re: [PHP-DEV] RE: High resolution timer function From: petercowburn@gmail.com (Peter Cowburn) --94eb2c0727726aa63c0561cb7792 Content-Type: text/plain; charset="UTF-8" On 2 January 2018 at 10:43, Anatol Belski wrote: > Hi, > > > -----Original Message----- > > From: Anatol Belski [mailto:weltling@outlook.de] On Behalf Of Anatol > Belski > > Sent: Saturday, December 16, 2017 3:03 PM > > To: internals@lists.php.net > > Cc: Niklas Keller > > Subject: [PHP-DEV] High resolution timer function > > > > Hi, > > > > I would like to propose a function for high resolution monotonic timing. > There > > was discussions about this before and a PR https://github.com/php/php- > > src/pull/2368 which has issues and was abandoned. I've filed > > https://github.com/php/php-src/pull/2976 with some reworked > > implementation. > > > > A monotonic timer can be usable in several situations besides > benchmarking. > > Having a simple functionality like this in the core should be a useful > addition. The > > current approach is a function returning array of [seconds, nanoseconds] > and > > optionally returning full nanosecond number as int on 64-bit or float on > 32-bit. > > The first way is the most portable. Quite a few platforms are already > supported > > by the current implementation. > > > > IMHO it should be fine to have a function like this in the core, perhaps > also a few > > helper functions could be useful, too. I would like to pursue 7.3 with > this. Please > > lets check for any concerns in general or with implementation, naming, > etc. > > > If there are no further comments or objection, I would like to merge this > patch anytime soon and see to add a couple of helper functions for > diff/compare. > > Why is this bypassing the RFC process? > Regards > > Anatol > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --94eb2c0727726aa63c0561cb7792--