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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18495 invoked from network); 23 Jan 2023 14:53:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 14:53:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674485596; b=SvXEJwTgZIrUqhcEI7I3rRcYlcdXsAEANHPy48tsXNUSiKoVjzWtTHiciCfTFmxOsk4DwPbkIQ qST+xAgst6eTrbpPCe09kS4PrCJuPnKpTY72L4NN9HXmz67PnJ3QuOBViRJn929AEYd4fHL+3V 8iOZDbi7s1/aa1WcdfwEwz79XarWVW0qjkU4lYwwy/n9g3EWx6cQNxzpVy5v6pVysNQh33o3jW 2Q6UQHsHmKfpAHsv51rA8bQQRyCobkJcwqa3ZuJ/jTQm3Q0sVfK5sRA+E2/Jk1PmWB8CqLLxfN mRWN1mU2+GlSPxQ/DkzQ7u6rNHn5vqOKBSaY2F6Cb15LtA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674485596; bh=N4J6AEyBhjaj4kAtIM2HKRiMGael7R78P3KD+mOio7k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:References:In-Reply-To:Subject:To:From:Date:Message-ID: DKIM-Signature:DKIM-Signature; b=CJYPtCyawLFobZP7dDItcfp6LfppBusob75XXfn/dWrjcuYAKuw7IPov/aErvhQfkUXb+hRfzX zZFggdsAq8kSDp39NsKdruYkj+7WhslrwPYvNLXcwjV56tgoZ++1FMO7Vd4yEdmKp7jvD7CbyN UxtIwBGexVJoQ2rxH4T/Ox0FntwVlb1cyAz+PGMLzy6+uPC2WkWiAHCfjActXk4bnkxfEKZE5K pWMPfYoHZ1Pnt1xEzQ6Jf8+YxhE6ZFJiwcHIvKh0TZfQqnvLEzNiOTuB1tb9SrVUGsAm+Rneek 3wGia9zUnLQCiMe7a8C+Wn+yJcj2A90NzTqJlJkBXd7npg==; 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:References:In-Reply-To:Subject:To: From:Date:Message-ID:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rG/huUg4D+Ysi1eFFSp2irxg8eBiE7UMN1d5okkkjPo=; b=XRzglqyJ+jXvvUXzqaSAXKc7QO Eu0+nd6uSMnFwxCGXVMsjx6UO/sPU+goIEIaCNgNscdemWOz63oqFFDFLQ0JdsIx+fwKZtLwD01+S uCm+mzMxQdzXgyAMAiM0Q6BmJTxUJxszQIhVdTnjSILLzWo2YRBnq2zvhOIcRPjsGgy/Ao7+eDh8S JNJNQdcwDS7fX+nagAtzqYzKHmer9fdGMI4TfRUAPH/OnhsBWj92AAQ7rZMo2D7TClBBozqTvT8pt Y/i2DuMol6kBr+pK4lrDCVyWl9j5awYC3HAdljmFxXzWqa904id9kcag4YADYT6PgbPINHWzpXq0L HfbLtAkA==; Received: by zero.zsh.org with local id 1pJyCB-0002V0-S3; Mon, 23 Jan 2023 14:53:15 +0000 Authentication-Results: zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none Received: from maila2.tigertech.net ([208.80.4.152]:42305) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pJy8S-0001RR-SG; Mon, 23 Jan 2023 14:49:25 +0000 Received: from localhost (localhost [127.0.0.1]) by maila2.tigertech.net (Postfix) with ESMTP id 4P0tKb5Cf5z6GrBq for ; Mon, 23 Jan 2023 06:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blaatscaahp.org; s=2.tigertech; t=1674485363; bh=rG/huUg4D+Ysi1eFFSp2irxg8eBiE7UMN1d5okkkjPo=; h=Date:From:To:Subject:In-Reply-To:References:From; b=QMyXUXArva0UYfmoJUfZtHBz5d5j59lTiFYf4Sx9k9VXVTjEwqg2cWbMv7khGHcuD GJsc5SDDLix8KaLC0QVvMRPF912xFCWr8pu4vys65y4UnL+ChDUg1mGJI+stNp1auo JGncXYHv6fpB0STPFpyCuZg0tpvvgEhA+caZK430= X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at a2.tigertech.net Received: from localhost (cst-prg-89-91.cust.vodafone.cz [46.135.89.91]) (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 maila2.tigertech.net (Postfix) with ESMTPSA id 4P0tKb0WbMz6GYMY for ; Mon, 23 Jan 2023 06:49:22 -0800 (PST) Received: by thinkcrap.localdomain (Postfix, from userid 1001) id 9A74935546A; Mon, 23 Jan 2023 14:49:20 +0000 (UTC) Message-ID: Date: Mon, 23 Jan 2023 14:46:42 +0000 (UTC) From: zeurkous@blaatscaahp.org To: dominik.vogt@gmx.de, Zsh Users Subject: RE: Re: time command with shell builtins In-Reply-To: References: User-Agent: 822_dng. X-Seq: 28746 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 Mon, 23 Jan 2023 15:28:33 +0100, Dominik Vogt wrote: > On Mon, Jan 23, 2023 at 02:42:05PM +0100, Roman Perepelitsa wrote: >> On Mon, Jan 23, 2023 at 2:40 PM Dominik Vogt wrote= > : >> > >> > Is it possible to get timing statistics of shell builtins too? >> > Timing "echo" isn't very interesting, but timing loop constructs >> > would be: >> > >> > $ time while foo; do bar done >> >> This: >> >> % time ( while foo; do bar; done ) > > That wasn't really the question. Of course I can time a loop by > writing a different command, or by putting it in a pipe or file. > > $ time echo foo | true > > I just want to get timing statistics of loops either explicitly by > prepending "time" or implicitly with REPORTTIME. That would be useful; me's bumped into this meself a couple of times before (and applied workarounds like the one suggested by Roman). > Ciao > > Dominik ^_^ ^_^ > > =2D- > > Dominik Vogt (As an aside, you might want to delimit your signature in plain text.) --zeurkous. -- Friggin' Machines!