Solved

Getting cfhttp execution time

Posted on 2011-09-08
2
427 Views
Last Modified: 2012-08-14
Hi,

I would like to log the execution time for a cfhttp post I am doing to a client api without using getTickCount() does anyone know if the execution time exists within the output?

Cheers
Leigh
0
Comment
Question by:Lmillard
2 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 36502786
Don't believe there is.

the only variables returned are:
cfhttp.charSet
cfhttp.errorDetail
cfhttp.fileContent
cfhttp.header
cfhttp.mimeType
cfhttp.responseHeader
cfhttp.statusCode
cfhttp.text


CF_http5 which is a $50 replacement for cfhttp does offer this (and a whole lot more) with it's HTTPTIME (The value of this variable is the total request execution time in milliseconds.  This time includes all overhead added by the tag.) function

http://www.cftagstore.com/?page=viewTag&tagId=146

0
 

Author Closing Comment

by:Lmillard
ID: 36502950
Thanks for that, looks like it will do what I need.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
need some regex help 15 27
Coldfusion CFMESSAGEBOX Passing Variables 6 107
Coldfusion speed up 4 79
oo coldfusion get inserted id 11 77
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now