This is probably what getTicketCount is:        The number of milliseconds since
January 1, 1970, or somewhere around there.  All you have to do is set a
variable to its value where you want to start timing.  Set another variable
to the value again when you want to stop timing.  The total number of
milliseconds it took is the 2nd time minus the old time.

HTH,

Brandon

Brandon Behrens
Developer
Momentum Software
http://www.momentumsoftware.com
512.236.1517

-----Original Message-----
From: pan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 2:07 PM
To: CF-Talk
Subject: Re: GetTicketCount() - where and when


From: "Eric Fickes" <[EMAIL PROTECTED]>
Subject: GetTicketCount() - where and when


> Definition:
> Returns a millisecond clock counter that can be used for timing sections
of
> CFML code or any other aspects of page processing.
>
> 1.This counter is how long it took the CF server to parse the CF code.
EG,
> execution time?
> 2.Is this for the entire page, or just for code contained in between
> <CFOUTPUT> and </CFOUTPUT>?
>

Ticks are based on a server counter that runs the lifetime of the
current boot.
GetTickCount() returns the value of that counter when the
func is called - so it's usefulness is in terms of the diff
between GetTickCount() calls. It is not precise and is
not a diff that equates exactly to x milliseconds of cpu
time - however it is close enough. Doesn't take into
account "server/network burps" or other things that might pause
or delay server ops at the system/network level.
Use the diff under the assumption that the machine and
network are operating smoothly,  is acting on your template with
the highest priority and that there are no "burps".

It's relaible enough.

Pan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to