From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9215 invoked from network); 6 Nov 2021 19:02:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Nov 2021 19:02:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636225366; b=lb1Tho0YEmI2ZRdigaoKr5AR6itHZ5g3a8YEVDvg+rLfnuv8x+bpRS+mparwKDt8HtK5gSWC71 eT4yA3Tnc1Hqov56ecasOc98uVV5iok+A8pP5fYWtkF7Y76SWZVggbxRwy5Uvmhhxi8XuYoGxH 0IvcnGH6H+Yg+8MTXW4H4oRI4NUGa32jIVe1jdkozWWxWsz1yHeTkZ5EtOfQJmPloyKTHR8J9h 3aAm8yZJ+6kcktKO5HMD4CXWXksR2Y8MovHdl/ouhjOhFT0XGJphqAKRkm6VmJ+EhSERjlipCq fYyCPI13KanZSMfmd97/YewbRI//Jueq5per5m3SidNtSQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636225366; bh=IdPNe1uKl79i0ik2VnUACdP4Ad2P9zCSeiCCucm8FBk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=S7XiSYB4zOukkIE+hLFfsqfv8EkRCKdjMwCm3L3IljeBNXFa4gXcHsUNX5wfZjc1EN+n5R9Ga7 dpE3d5gdws5ISl3hewAMCQOWhmncl1+NOYgk4NCxoVa3SCJexDZh+13+ZFCpnDu4QFUoCpEnO7 gg4Wyk9rm4Of7e9AHztiWt515cenaHFdtn6SNeNBgmFIcMUt1NpP42ieRCfF4Bo9afq16nuVG0 hFxg1aRieP+1TLR6X8AcW/S8hcV8+kudSX3qbQ/thxCtz2RVVjHXgIJ0s6+3+OThA+cVEX1uLk uOU+Y1u9ofWWHqDy7GCDO76M1NAsszG8BGPbFa8+nwrhkA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=IdPNe1uKl79i0ik2VnUACdP4Ad2P9zCSeiCCucm8FBk=; b=ji2o6qn4k56N8oogllPpeM6uqg Ki/fGW/tkyK0e2dyMf75LVzMKHa/ZO+8y6T2idcClDpeeaTHw8EjPCt2vwGbC+WCqKM8x9/bYcBS/ 3VRtZ1Av9ATJ4IfNlrY2SXYGkJpIClRKOxUdxkyRrfHwSdId2c9L2owMNKj4qvJTq15DkhfyTgnkc LQ70ceflzJ822H3iWRejeeN6QjLvMy9S2i8vZlvt9jO18DGUIomBCFSLKecrX27zPrc/UD4g+6JAv rh2K1iYMWDeeKClfliLwNrpuKrRdFLx1L+F9r76prwE1UqIfXqHc6dTIq8vH60r75EZXclt9FaH34 bfaoShmA==; Received: from authenticated user by zero.zsh.org with local id 1mjQxh-000Aan-Iw; Sat, 06 Nov 2021 19:02:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f173.google.com ([209.85.219.173]:37800) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mjQx9-0009vC-M9; Sat, 06 Nov 2021 19:02:12 +0000 Received: by mail-yb1-f173.google.com with SMTP id e136so28521896ybc.4 for ; Sat, 06 Nov 2021 12:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IdPNe1uKl79i0ik2VnUACdP4Ad2P9zCSeiCCucm8FBk=; b=PZ+0mQMZCbLJKBm6aasabUeyxX7J0jlhEZEc82BoeXT+0sVbBwAnBkygb14W42Z0Wu y9GEd6NGOTO1rqxiIfirFuW/X1wxc0Mjc1O+9ojuom4q/ortu/cUioW4twTZWTacERjG ZhhBkT/EdowraEblbepbCBQVnnyHDKa8k1WR9DzcHyyer5dCigYAqjlt+3EuHJXcFQT5 LopS34lGI5yMwkqNM5evIsoZBm/qbrob4x0dj1y31ryArW9vAYDserpjNAFP4zeXd0WR 73VsyGJBFdY/KCH+L6l8LpClLqxosqyLnJD6HdQu1vOHhJW82dOkbWCjLlZp2tNxDdxL 2dZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IdPNe1uKl79i0ik2VnUACdP4Ad2P9zCSeiCCucm8FBk=; b=J9pXgMLg+renyc4Qxd3wdlRvrhcUs7tb4S7sMolvU/FkKUnF5XilZkXxvtrsiQoPE1 wKKhMle9A0HP3iiEAfeZ35CG1QMAnihJU/iqftDH4zhjBoHthKyof7Xa+EcpNonBN9Wc 7cgZuQeZazFIPH4rKmk8fo0D6mKT6ifOHK4DZHp8+ClXk8/OtW4LD2HOIbxlTVdG+iuz nIxFki8KSIhaM/0xv9Xw6bL93UWVaOSDDXgnl/U8j/mH0AY/UX7Nh6UED2rk/f8IyHjn FOAHjsTGyK8iWvsBfUd/WHfyx43+1dSRWvYCp6fqdCxxCT0vUTDMO/hEylM0HeRxC+zX rxgw== X-Gm-Message-State: AOAM5319bqiNz+wEieagYg48NpKyHMl7N7bM5jfCPQb/5R8j0NWHVjaF MA0E9YZwL3gCinsDkpZy3RZylLTGOPxdBwoEuyp5xA== X-Google-Smtp-Source: ABdhPJz5efQ/2E4NjrYr4rjqSfM6RaCw3OrliZxM0YsjSU9tbzu4/Z7aaU29z2cu+IsxaYDyGWsbY/OzWM3gOaoEHMQ= X-Received: by 2002:a25:cb93:: with SMTP id b141mr69008924ybg.89.1636225330787; Sat, 06 Nov 2021 12:02:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sat, 6 Nov 2021 12:01:59 -0700 Message-ID: Subject: Re: Timing function execution To: Roman Perepelitsa Cc: Zach Riggle , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27318 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, Nov 6, 2021 at 11:44 AM Roman Perepelitsa wrote: > > Does this mean that `time foo` could work for functions (or rather any > "list")? That would be nice. It's a bit more complicated than that; "time" with is handed fairly deep in the exec.c call stack, with a special case for an empty list, and actually requesting/printing the data when there is a list is passed off to the SIGCHLD handler, so it would take a bit more untangling than I'm going to dive into.