To get the execution time of the page use the GetTickCount() function.
<cfset foo = getTickCount()>
do some CF processing here or render the entire page
<cfset bar = getTickCount() - foo>
<cfoutput>Execution Time: #bar# ms</cfoutput>
HTH,
Jeff Garza
Webmaster,
Spectrum Astro, Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Paris Lundis
To: CF-Talk
Sent: 8/29/01 10:15 PM
Subject: RE: template statistics...
Thanks Michael... I use a permutation of that for some overall server
stats... for when the server is flaking out :) great stuff for watching
pages fly out when the server is active ...
I am looking for the undocumented feature that spits out the page
execution time of the current page... including the queries and such as
part of that... :)
-paris
[finding the future in the past, passing the future in the present]
[connecting people, places and things]
-----Original Message-----
From: Michael Punsky <[EMAIL PROTECTED]>
Date: Thu, 30 Aug 2001 00:43:28 -0400
Subject: RE: template statistics...
> <!-------------------------------------------------------------------
> --
> This example gets and displays the metric data provided by
> Windows NT PerfMonitor.
> ---------------------------------------------------------------------
> ->
>
> <cfset pmData = GetMetricData( "PERF_MONITOR" ) >
>
> <cfoutput>
> Current PerfMonitor data is: <P>
> InstanceName: #pmData.InstanceName# <P>
> PageHits: #pmData.PageHits# <P>
> ReqQueued: #pmData.ReqQueued# <P>
> DBHits: #pmData.DBHits# <P>
> ReqRunning: #pmData.ReqRunning# <P>
> ReqTimedOut: #pmData.ReqTimedOut# <P>
> BytesIn: #pmData.BytesIn# <P>
> BytesOut: #pmData.BytesOut# <P>
> AvgQueueTime: #pmData.AvgQueueTime# <P>
> AvgReqTime: #pmData.AvgReqTime# <P>
> AvgDBTime: #pmData.AvgDBTime# <P>
> CachePops: #pmData.CachePops# <P>
> </cfoutput>
>
>
> -----Original Message-----
> From: Paris Lundis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 12:05 AM
> To: CF-Talk
> Subject: template statistics...
>
>
> silly question..
>
> you know that template enhanced admin stuff that trails on the bottom
> of the pages when you specify IPs to report such to?...
>
> well namely the execution time in milliseconds... how can I get that
> value directly (programmatically)... want to utilize it within code
> elsewhere... couldn't find any samples or documentation on it...
>
> -paris
> [finding the future in the past, passing the future in the present]
> [connecting people, places and things]
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists