From owner-freebsd-questions Wed Nov 1 14:57:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 649A737B4CF for ; Wed, 1 Nov 2000 14:57:07 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eA1Mv5p24879; Wed, 1 Nov 2000 14:57:05 -0800 (PST) Date: Wed, 1 Nov 2000 14:57:05 -0800 From: Alfred Perlstein To: Mike Cc: freebsd-questions@FreeBSD.ORG Subject: Re: prog exec time Message-ID: <20001101145705.G20567@fw.wintelcom.net> References: <4.3.2.7.2.20001101170902.0c919670@mail.futuredesigns.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <4.3.2.7.2.20001101170902.0c919670@mail.futuredesigns.net>; from mike@fdhosting.com on Wed, Nov 01, 2000 at 05:12:08PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Mike [001101 14:11] wrote: > Is there a way to find the time it takes to execute a cgi program writte in > C, and the same for the time it takes a PHP script to run from. (preferably > output that time on the page generated from the script.)? C and php both offer interfaces to access the system time, just ask for the time at the start and end of your script/C code and subtract, that should give you an answer. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message