Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84382 invoked from network); 13 Jan 2017 14:06:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2017 14:06:37 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:34098] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/12-00729-CEED8785 for ; Fri, 13 Jan 2017 09:06:37 -0500 Received: by mail-lf0-f41.google.com with SMTP id v186so38339678lfa.1 for ; Fri, 13 Jan 2017 06:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Le26cBnSVvSf4VdHELqWcYj9od+m1mnfZLJ4CvDcjQ0=; b=PiFjBhDd6BudGXuoHz0C8+gGz74u+9snw2bu84aklLeEQcWFr8VMAjYHpmGU0U1gU/ W8VOlHwz8EJAXFkrf7EP95iWgQd6ISKKM3lLXlvyfXuwoN8MtZxU1rTamtsyMiEhD2Wx hPtYZXRBK/94qfMLw/AShTAgIqIOBWcXecbZNdndFwisOAcITTvda9X3Jbkre01s166S HuZ5Fy7G249NOKe8d5J6iaZTDA8f0qAylxBEFGnx06vBVIywLtuQsH90tE4HQgdYmXtO Gyh/8L8EkjjrOZ/3xGi42wqW8KzSCiklWT7jCdAj9892FWFCxMtEovp+yVlIJNifuPnH tftg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Le26cBnSVvSf4VdHELqWcYj9od+m1mnfZLJ4CvDcjQ0=; b=hXphlkiupbe8WZEQgfTIlCZfmi+IkSpfO0jcz5ccVx8CiEnz3TLvqOpLOFJhZAIZLn AJV4yuEZ59c3sE3W/DBixgBR0N+mkEudN/ylGqV9vs73bZbdsySLMaTQQm60mpqoGS2e 6bQEak/8sYxuKUDMb8AEdb4Xpx8Ky+MmMnHDGJ8yzWyoqU5AhZffgn1jaHuyk9cKknRT w2Iismf8TdfFcU0l4lcXFWecnY/UVPvq3E8ysdNVvVR6QmmuLCNLPAAhVbp5TAY4r/sa pBPwPSbsLkUC2vsN2I/vu4ScIoxt1S7/USaWCzrqacs+MncDCrVVOTraIh31po9o0nPE okhg== X-Gm-Message-State: AIkVDXIcbhpeWBOC0NXHSmL73tdD542vs3gPOxG09zN0U6rh+DjoaL9QqKr8YjnYlWV5nfV6s/0TSvoKYwpMAA== X-Received: by 10.46.14.9 with SMTP id 9mr7136177ljo.59.1484316393120; Fri, 13 Jan 2017 06:06:33 -0800 (PST) MIME-Version: 1.0 References: <146cbb21-72cf-ed65-095a-43a7420482fc@php.net> <02c901d2684e$d1ee2a30$75ca7e90$@belski.net> In-Reply-To: Date: Fri, 13 Jan 2017 14:06:22 +0000 Message-ID: To: Niklas Keller , Anatol Belski Cc: Michael Wallner , PHP Internals , Bob Weinand , Daniel Lowrey Content-Type: multipart/alternative; boundary=f403045ea6de58a5d20545fa572d Subject: Re: [PHP-DEV] Fwd: Monotonic Time From: leight@gmail.com (Leigh) --f403045ea6de58a5d20545fa572d Content-Type: text/plain; charset=UTF-8 On Fri, 13 Jan 2017 at 09:35 Niklas Keller wrote: > Hi Anatol, > > Do you think we should merge hrtime into core or add a simple function just > like microtime() to ext/standard? > > Regards, Niklas > It would be great if it could be a simple function, however it is going to be difficult to produce something cross-platform and meaningful with a single function. (I know Anatol has written portable code, I haven't looked at it but I assume it's wrapping the various structs used by i.e. performance counters, hrtime, etc.) I don't think we can get away from having an object-based implementation to wrap those internal structs, but I do think this is a useful addition regardless of how it's presented. --f403045ea6de58a5d20545fa572d--