Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47002 invoked from network); 2 Jan 2018 10:43:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2018 10:43:15 -0000 Authentication-Results: pb1.pair.com header.from=weltling@outlook.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=weltling@outlook.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain outlook.de designates 40.92.72.99 as permitted sender) X-PHP-List-Original-Sender: weltling@outlook.de X-Host-Fingerprint: 40.92.72.99 mail-oln040092072099.outbound.protection.outlook.com Received: from [40.92.72.99] ([40.92.72.99:3550] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/03-23177-1426B4A5 for ; Tue, 02 Jan 2018 05:43:15 -0500 Received: from DB5EUR03FT040.eop-EUR03.prod.protection.outlook.com (10.152.20.51) by DB5EUR03HT150.eop-EUR03.prod.protection.outlook.com (10.152.21.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12; Tue, 2 Jan 2018 10:43:10 +0000 Received: from LO2P265MB0253.GBRP265.PROD.OUTLOOK.COM (10.152.20.56) by DB5EUR03FT040.mail.protection.outlook.com (10.152.20.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.345.12 via Frontend Transport; Tue, 2 Jan 2018 10:43:10 +0000 Received: from LO2P265MB0253.GBRP265.PROD.OUTLOOK.COM ([fe80::ddbb:8b49:3c80:aa9e]) by LO2P265MB0253.GBRP265.PROD.OUTLOOK.COM ([fe80::ddbb:8b49:3c80:aa9e%13]) with mapi id 15.20.0366.009; Tue, 2 Jan 2018 10:43:10 +0000 To: "internals@lists.php.net" CC: Niklas Keller Thread-Topic: High resolution timer function Thread-Index: AdN2cldZscVt9KEGSeWMgvIhmDaSOANQ9Xcw Sender: Anatol Belski Date: Tue, 2 Jan 2018 10:43:10 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=a-anbel@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2017-12-16T14:03:15.6141705Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-incomingtopheadermarker: OriginalChecksum:5F4FF0E3895DFA3D184F396D32427DCC9D5925EB5B0C0B44C4441D50A2BD4F6C;UpperCasedChecksum:5490C17DEACBD41181BED01727B5CFB943DA237ED33BF77FC873ED2CE19B18F6;SizeAsReceived:7866;Count:49 x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [aqn2zyXAJNsNEqYLgp08DXs0U0NjJWtEP9b2+9sNlukb4rokBQnPQfJuh58cM7EgLjBtB6R84Kk=] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB5EUR03HT150;6:Rs5jxO9jmOAocTJbQsYU0SSIPcTkaYnOonCgiQfIUo+oFeMogydMq+ichp9H5bx6wILoN+o7P2O9VKTD6fHlY1BF+12RxBglqb6qY3NjeGK8/eEEhaxFIXZokifG7HkHNBM70FueIJ2RTt8K4d8XMUSoUDVGr841dTiQ8T0xif5wqehBU44VUlJPJbkxV3MVGU5BCV7YJAhz3Aa9g08EnY38R0bs2cufBW9BMOnZaqWIRmVC2NwBHTxr6r86msXYOg9De64edT8tddqgH1IsnQAY7YJYvDAtwKCr+9eZ1F2iMV0BTNyG4sD/IAvLiUHGafjT7Q3MP5/0u3g4Wkv7RQPPUU98Z+z11J095SoKISw=;5:v1r9NQFOUELGSULFa8A6fGlYjg1p0pCGF2ekV9wyrIJHeWCIF+Z3kydGSGqIgu7+gLJWLqSea2ggOmke8EX5EKVC0S/05sfr4QNTVCUDDkT1foRr5dm1LVOlplJO/6OlS7Knvsw2WQsxgLRC4s8xrN23eEav2Ohoz4/COulnWqM=;24:Rb/cpdf81g+fMIPq1jrSOWJr6hZmFWb7B27jWy3kz8EThSXUAFzQXd1HiG24wpNxu7J40PqRAr27LppJ/v0yxa0r17lcclgQmUYObARblmU=;7:nNHz3mtJPRcGxN9lMxf/tPagvZ02lSp3c8fC8mpYOEZAY2RA2PB/bhn/ELQod6YRqVUAVYFB1bO3LqYTcAnMJusEN6fz6AY8UU8gHnmzFl9gveNVl10Ook6lqBhrpPoOH7SSMG+PzRZNbdO2UQg91I+c3ld38Blte7ccsA6rA0nwq3e7KKVGcc8so0151PGs88VdqE3RQo+fTzd6lbimdIt3tmH1kbXI3G+oFdixTUuj0UA/4YqhMsbShWOhPlpz x-incomingheadercount: 49 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);SRVR:DB5EUR03HT150; x-ms-traffictypediagnostic: DB5EUR03HT150: x-ms-office365-filtering-correlation-id: d183730c-aa33-4eb4-5988-08d551cd9e1c x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:DB5EUR03HT150;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB5EUR03HT150; x-forefront-prvs: 0540846A1D x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:DB5EUR03HT150;H:LO2P265MB0253.GBRP265.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d183730c-aa33-4eb4-5988-08d551cd9e1c X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2018 10:43:10.5284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT150 Subject: RE: High resolution timer function From: ab@php.net (Anatol Belski) Hi, > -----Original Message----- > From: Anatol Belski [mailto:weltling@outlook.de] On Behalf Of Anatol Bels= ki > Sent: Saturday, December 16, 2017 3:03 PM > To: internals@lists.php.net > Cc: Niklas Keller > Subject: [PHP-DEV] High resolution timer function >=20 > Hi, >=20 > 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. >=20 > A monotonic timer can be usable in several situations besides benchmarkin= g. > Having a simple functionality like this in the core should be a useful ad= dition. 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 sup= ported > by the current implementation. >=20 > 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 th= is. Please > lets check for any concerns in general or with implementation, naming, et= c. >=20 If there are no further comments or objection, I would like to merge this p= atch anytime soon and see to add a couple of helper functions for diff/comp= are. Regards Anatol