Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65642 invoked from network); 13 Jan 2017 09:35:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2017 09:35:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.216 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.216 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.216] ([81.169.146.216:10933] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/81-40314-16F98785 for ; Fri, 13 Jan 2017 04:35:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1484300125; l=2449; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=pCtmHwfmwZKsfe3AOBjvxuYzONWXe4GtjNcuYXh2aS0=; b=PpgidVfWOiHhYg3gqYaieOjgWc0E/Q3Z2OEppmudAnfkUkNqvCL8f0A2OUT+gwrI8c 1yq/3gpBXoG1hxPINyXoPwu58VGh6wbHgXMKfeAD3aX1+MEnobdjWWnYva3BRXl7l01N kxec+UWSsNloI/e1wF0XT46l6+Aw1aUC38klA= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoBPBqD/sF4= X-RZG-CLASS-ID: mo00 Received: from mail-qk0-f170.google.com ([209.85.220.170]) by smtp.strato.de (RZmta 39.11 AUTH) with ESMTPSA id K093e1t0D9ZPtzS (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Fri, 13 Jan 2017 10:35:25 +0100 (CET) Received: by mail-qk0-f170.google.com with SMTP id s140so48566206qke.0 for ; Fri, 13 Jan 2017 01:35:25 -0800 (PST) X-Gm-Message-State: AIkVDXJWVwlhoPaRVHEQkDv6v/LE9NdPmy/p8TWgrO7bC3cgkvj3fAWOA5rqjZ7IasowSMRIv47a3qLxSCrzpQ== X-Received: by 10.55.129.194 with SMTP id c185mr17173366qkd.0.1484300124785; Fri, 13 Jan 2017 01:35:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.141.204 with HTTP; Fri, 13 Jan 2017 01:35:24 -0800 (PST) In-Reply-To: <02c901d2684e$d1ee2a30$75ca7e90$@belski.net> References: <146cbb21-72cf-ed65-095a-43a7420482fc@php.net> <02c901d2684e$d1ee2a30$75ca7e90$@belski.net> Date: Fri, 13 Jan 2017 10:35:24 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Anatol Belski Cc: Michael Wallner , PHP Internals , Bob Weinand , Daniel Lowrey Content-Type: multipart/alternative; boundary=94eb2c05f792adf2e60545f68dfb Subject: Re: [PHP-DEV] Fwd: Monotonic Time From: me@kelunik.com (Niklas Keller) --94eb2c05f792adf2e60545f68dfb Content-Type: text/plain; charset=UTF-8 > > > > Actually, it seems, that hrtime doesn't let you access the current > > > value, which is, well, quite a major use case, isn't it? > > > > > > Yes, that seemed weird to me, too. Did we miss anything, Anatol? > > > 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. Hi Anatol, Do you think we should merge hrtime into core or add a simple function just like microtime() to ext/standard? Regards, Niklas --94eb2c05f792adf2e60545f68dfb--