Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119949 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95687 invoked from network); 12 Apr 2023 10:16:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Apr 2023 10:16:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1D69A1804C6 for ; Wed, 12 Apr 2023 03:16:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 12 Apr 2023 03:16:03 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id dm2so27553036ejc.8 for ; Wed, 12 Apr 2023 03:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=groot-jebbink-nl.20210112.gappssmtp.com; s=20210112; t=1681294562; x=1683886562; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=/wIa6hN+zQyztpPrDyqsB4kEAKRwH4n7kILb0eqqyPM=; b=vorDNZGzqy+HhE5RdwGV7ZF5a5pwrMb9eDtnDk3SgQ94M8YPTfI1MB1W4NBM5AOfIa jiD/Kd0/3I1uMEibImezcZBk96hZuGWpFdA+a0vSmZaPbrzZBHBOn/7KusZrUPg4JUhT VRZXX9l+QsyllUIXdOXEuChFyyE/gqKeQdeOJKinPxq5kAA6ok/ll/gCVGttLMvYvaVj VyiK2e5/TJwCcdcSo4Qq+iXi27M5uBf26WI+XNBQ+ITXR2KREttfCruD31mrps7d9Lnl LJgx4LnoQBf0K0FbttJJpvK0Jz6kaKb+Pc2oobCK5rj7MSebmlRF0I6c1qTKziJiIyLw ON0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681294562; x=1683886562; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/wIa6hN+zQyztpPrDyqsB4kEAKRwH4n7kILb0eqqyPM=; b=vCS0WubZwxYOOQg6D5RIT82RG/FZ8HLyCaxKcP37YpEQhSA5uGwl0RAy5Z7oBAm+3V YVn9+nzJI3P/Sx1fNF70/ntRCWrQ976Y2kqjHFz01wPuyiqIcPcl5TvW1nAxk2Eul8CO CkyJI+9HSle77UinW1WyFLhHBl4buPIJkAsB5eIPGiqiJ02Nu41yJGp1VmHpOCyTy8si BiY+b5+qkupIJbfqKVbgunOhM+VsDDKsaNbSIH+TEcVfya1r46QcMBOiEqGmbRIdJwzH LGLJenAhD/PUt+b/iUFnDT4hlbgXqqYpb4Ld0CZLom9e1m7y8t/VGFbgdEnIp0en2mcA 4AHw== X-Gm-Message-State: AAQBX9eQoC3i+Bsp6aysk6uDihIxLB8xJTx6QK9kE/rBWVCYsmM30IbX PNTTmeb/J7vw+GWoPaj1XSlyQz9r+jA5altOR+FAk3GtuKtlfDcWEp8= X-Google-Smtp-Source: AKy350bkwqN5/JPwqh8hsNXzhLup6fSxuvtpbc8unbUqCVg9b6zXAsvvyc03deFi9tJsWbhdMZ/6Boh/YHNXjoM6QFY= X-Received: by 2002:a17:907:98c9:b0:930:310:abc9 with SMTP id kd9-20020a17090798c900b009300310abc9mr2843580ejc.9.1681294561662; Wed, 12 Apr 2023 03:16:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 12 Apr 2023 12:15:50 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000001c713f05f920e53c" Subject: Re: Possible RFC: $_SERVER['REQUEST_TIME_FLOAT'] From: herbert@groot.jebbink.nl (Herbert Groot Jebbink) --0000000000001c713f05f920e53c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 12, 2023 at 12:01=E2=80=AFPM Herbert Groot Jebbink < herbert@groot.jebbink.nl> wrote: > Hello, > > With this mail I want to do the first step of a RFC: "1. Email > internals@lists.php.net to measure reaction to your intended proposal." > > I'm in the process of using hrtime(true) instead of microtime(true), for > this it would be great if REQUEST_TIME_HR would also exist next to > REQUEST_TIME and REQUEST_TIME_FLOAT > > The implementation can be done with adding below 2 lines to > main/php_variables.c where REQUEST_TIME and REQUEST_TIME_FLOAT are also > defined. > > ZVAL_LONG(&tmp, php_hrtime_current()); > php_register_variable_quick("REQUEST_TIME_HR", > sizeof("REQUEST_TIME_HR")-1, &tmp, ht); > > With Kind Regards, Herbert > pfff, the "forgot to change after a copy/paste" mistake, the variable in the subject must be $_SERVER['REQUEST_TIME_HR'] --0000000000001c713f05f920e53c--