From c82c9b763befb78bff8b7f36243a10965401c1a2 Mon Sep 17 00:00:00 2001 From: Jiafu Gao Date: Wed, 1 Jun 2016 09:35:52 -0400 Subject: [PATCH] HPCC-15656: Add the ability to log Response Time --- esp/logging/loggingmanager/loggingmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esp/logging/loggingmanager/loggingmanager.cpp b/esp/logging/loggingmanager/loggingmanager.cpp index 75b9b9f937c..667881d3f22 100644 --- a/esp/logging/loggingmanager/loggingmanager.cpp +++ b/esp/logging/loggingmanager/loggingmanager.cpp @@ -116,6 +116,7 @@ bool CLoggingManager::updateLog(const char* option, IEspContext& espContext, IPr const char* userId = espContext.queryUserId(); if (userId && *userId) espContextTree->addProp("UserName", userId); + espContextTree->addPropInt64("ResponseTime", (__int64)(msTick()-espContext.queryCreationTime())/1000); Owned req = new CUpdateLogRequestWrap(NULL, option, espContextTree.getClear(), LINK(userContext), LINK(userRequest), backEndResp, userResp);