Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28109 invoked from network); 4 Jan 2017 17:00:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2017 17:00:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.193 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.210.193 mail-wj0-f193.google.com Received: from [209.85.210.193] ([209.85.210.193:35496] helo=mail-wj0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/A0-55609-72A2D685 for ; Wed, 04 Jan 2017 12:00:23 -0500 Received: by mail-wj0-f193.google.com with SMTP id hb5so43098138wjc.2 for ; Wed, 04 Jan 2017 09:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=mQIfBTfEDQCIQGcaFdtYoot27uNz5WGxjmuhphIfU38=; b=c6LNyNmHMYiI/7Z8B4nMlZKknZggFBZeCt3azAAieEwV3m9oHuMJgrhbCRn16IPzrM 6vN5sPWPoCYM/NbZ6hstrQViNrTusOJ+muRrXRAm84YnPt4jzxV3PCZiVqiTDCxIRQ2r roJV+UIyZS4naE9i69pNpg5z4C7xAb8t/hpzmrOvw8nNgDaeQmty4qxzmHGROTyLd2Bs 4arKbE5ORPTdHdljDI4zrjGrf19DFtPFBnwwn12qjZ5RL6SzDGRl5fuNA6niV4qUM60I e9kDjA4wVToYlCCBw8lutcf8Zz8IghFJeGg8etFqRvk4N7sawcF28OI+4sqIZSlGIdZh K4KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to; bh=mQIfBTfEDQCIQGcaFdtYoot27uNz5WGxjmuhphIfU38=; b=QVVK+G38PJEG0YitzkiESc7767UgTkUshc+dRsdiFZUyLHpiMjLK0+h9j0I+T53xf0 z8qlAq7DKniCG4SMOnIeNcCq0AMEzz75wapcnrpeKYGtliJmUSBNI9DZPMhu2sPP1vtI MmAQRlLiSK/V3xMVq+KVEnqmc7MbMjgdACx3xJ/WDi+eAhGfQeP/My2eu+jwyXiJeVPG gfrfR1EaLYdHPclxlZlLsEBMttWctXFb0qeDOK0l16q5jS79eOFTtUHh2G1c5cZEGiYL R1ogc4vyetRJxkenPJlhLsj3RCgnn6xTDl+YRnpwbgS0N6oosorjpBuAES0yPFq5bVFC LDRw== X-Gm-Message-State: AIkVDXJ+MbKq8beoGsmbwCr5arCYu9JnrJGMe327g0w2K1SMAsx/Q5svxFfVScrb7MVQ2w== X-Received: by 10.194.47.203 with SMTP id f11mr59619227wjn.146.1483549220519; Wed, 04 Jan 2017 09:00:20 -0800 (PST) Received: from [192.168.2.207] (89-104-28-113.customer.bnet.at. [89.104.28.113]) by smtp.googlemail.com with ESMTPSA id l74sm95726064wmg.2.2017.01.04.09.00.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 09:00:19 -0800 (PST) Sender: Michael Wallner To: internals@lists.php.net References: Message-ID: <146cbb21-72cf-ed65-095a-43a7420482fc@php.net> Date: Wed, 4 Jan 2017 18:00:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AhjXTAmkWb6s151unhgPvN9PsjwI1Svu8" Subject: Re: [PHP-DEV] Fwd: Monotonic Time From: mike@php.net (Michael Wallner) --AhjXTAmkWb6s151unhgPvN9PsjwI1Svu8 Content-Type: multipart/mixed; boundary="4bnuqjab1sTPBJU3GUFlAP5KfaT27h0d2"; protected-headers="v1" From: Michael Wallner To: internals@lists.php.net Message-ID: <146cbb21-72cf-ed65-095a-43a7420482fc@php.net> Subject: Re: [PHP-DEV] Fwd: Monotonic Time References: In-Reply-To: --4bnuqjab1sTPBJU3GUFlAP5KfaT27h0d2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/01/17 13:58, Niklas Keller wrote: > Resending previous mail, because mail distribution was broken... >=20 > Morning Internals, >=20 > PHP doesn't currently have a way to access a monotonic time. There's a > feature request in the bug tracker: bugs [dot] php [dot] > net/bug.php?id=3D68029 >=20 > A monotonic time is required to measure time intervals correctly, e.g. = for > implementing event loops based on stream_select. microtime() is affecte= d by > NTP and leap seconds and can therefore not be reliably used for measuri= ng > time intervals. >=20 =2E.. > There's an existing PECL extension named hrtime: php [dot] > net/manual/en/book.hrtime.php >=20 > I think we can reuse parts of it to implement a function in core to acc= ess > a monotonic time, I don't think we need to merge the extension into cor= e. >=20 > What do you think about adding such a function to the PHP core? +1? Actually, it seems, that hrtime doesn't let you access the current value, which is, well, quite a major use case, isn't it? --=20 Regards, Mike --4bnuqjab1sTPBJU3GUFlAP5KfaT27h0d2-- --AhjXTAmkWb6s151unhgPvN9PsjwI1Svu8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEHsPHHd1jWDGjN9aESA4+FLCkx8cFAlhtKiIACgkQSA4+FLCk x8e4rgf/VDP+idw/uAEV8X3qCd8WOBNT3aIjOBsgPHORsVsQBvymoWd4/bYuYhBc XjABPZQ8OqY1/uI3aa9eKTSWotNe5Ry2A/HI0ZAxsOGDCPuq7C8GyoJQuiGYxovw OTGGL79qKbKUJUXVs+IlAD046lDQdqzYbxviMVy4rqVVgiTDJCGJccwU6eB4DM/k fRM71VpJsScBb221ijPbDfhK98DNWAzY2r500/UPng8NyWNWTV96QlSsMu3CrNX0 x8NHAYXzq7UMdBp/1z6YaKhy8muk4xTeB9+OMhbE2XAFBzbA2dxeyxAp/+7/ZdjB I0jH6xYDjRkeQPnVJRv7ipbjEBxbuw== =uYIi -----END PGP SIGNATURE----- --AhjXTAmkWb6s151unhgPvN9PsjwI1Svu8--