[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:

Getting cfhttp execution time

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
Lmillard
Asked:
Lmillard
1 Solution
 
SidFishesCommented:
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
 
LmillardAuthor Commented:
Thanks for that, looks like it will do what I need.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now