Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78592 invoked from network); 6 Jan 2017 18:58:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2017 18:58:15 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:40972] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/79-23307-6C8EF685 for ; Fri, 06 Jan 2017 13:58:14 -0500 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id C3462782ED7; Fri, 6 Jan 2017 19:58:10 +0100 (CET) Received: from w530phpdev (p54A77FD0.dip0.t-ipconnect.de [84.167.127.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 760D1782ED6; Fri, 6 Jan 2017 19:58:08 +0100 (CET) To: "'Niklas Keller'" , "'Michael Wallner'" Cc: "'PHP Internals'" References: <146cbb21-72cf-ed65-095a-43a7420482fc@php.net> In-Reply-To: Date: Fri, 6 Jan 2017 19:58:02 +0100 Message-ID: <02c901d2684e$d1ee2a30$75ca7e90$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQG2APfuj27eyiyn6X74ZL08hYdWAAF/HnI7ArG79kgBt17lb6E1GqMg Content-Language: en-us Subject: RE: [PHP-DEV] Fwd: Monotonic Time From: anatol.php@belski.net ("Anatol Belski") Hi, > -----Original Message----- > From: Niklas Keller [mailto:me@kelunik.com] > Sent: Thursday, January 5, 2017 2:27 AM > To: Michael Wallner ; Anatol Belski = > Cc: PHP Internals > Subject: Re: [PHP-DEV] Fwd: Monotonic Time >=20 > > > > 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 >=20 > Yes, that seemed weird to me, too. Did we miss anything, Anatol? >=20 Yeah, I thought I did that already, but well ... The ext was more about = performance testing, at the start at least. I made some refactoring to = it yesterday, so it is now possible to implement an arbitrary userspace = timer using the HRTime\PerformanceCounter class. Maybe should add also = HRTime\Timer, but it should first get a thought about some good API = approach. The portable parts are bundled files timer.[h|c] in the hrtime repo, = supporting POSIX, Windows and Mac. They can be reused, or taken as an = example, for sure. Regards Anatol