Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2000 14:57:05 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Mike <mike@fdhosting.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: prog exec time
Message-ID:  <20001101145705.G20567@fw.wintelcom.net>
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
References:  <4.3.2.7.2.20001101170902.0c919670@mail.futuredesigns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Mike <mike@fdhosting.com> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001101145705.G20567>