08-20-2012
Need to get the time difference for all the transactions in a day
Hello Experts,
I need to evaluate my API [for ex: for getNEData() as given below] performance, so need a script to get the time difference[between Entering and Exiting] for all the transaction that has gone through my application in a day. The challenge is the multi threaded logs, so I cant just get all the Telephone Numbers and check the entering and existing time, i have to keep in mind the thread factor here. There could be multiple calls for the same Telephone number in different threads for different APIs. Please suggest.
HTML Code:
2012-08-17 00:00:06,369 INFO [[ACTIVE] ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)'] service.impl.SDXInventoryImpl - Entering getNEData() for 5417543010 of com.sdx.services.impl.SDXInventoryImpl
2012-08-17 00:00:06,369 DEBUG [[ACTIVE] ExecuteThread: '120' for queue: 'weblogic.kernel.Default (self-tuning)'] nmo.dc.RackDC - Exiting getRackInfo() for 5627562233 of com.sdx.services.nmo.dc.RackDC
2012-08-17 00:01:08,369 INFO [[ACTIVE] ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)'] service.impl.SDXInventoryImpl - Exiting getNEData() for 5417543010 of com.sdx.services.impl.SDXInventoryImpl
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies
2. UNIX for Dummies Questions & Answers
Hi, I'm a newbie to unix. I have a txt file with my data, a list of events. Each event comes with a unix time. I want to seperate a months worth of events into those that occur during the day, and those at night. I have no clue how to go about this, please can someone push me in the right... (6 Replies)
Discussion started by: pmasterkim
6 Replies
3. Shell Programming and Scripting
i would need some help in setting the value of a variable (TIME_NOW) depending on the time of the day ...e.g.
if today's date is 12th April 2009 and if the current time is between midnight and 16:59:59 hrs then the TIME_NOW should be yesterday's date i.e. TIME_NOW=11
else if the current time... (3 Replies)
Discussion started by: zainravi
3 Replies
4. Shell Programming and Scripting
I manage to find and proces one script, now i need to automate this script for every day at the same time... (2 Replies)
Discussion started by: voltaza
2 Replies
5. Shell Programming and Scripting
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
6. Shell Programming and Scripting
Hello!
I need to calculate number of days between two dates.
The first date is in format of string.
The second one is in format of date (current date):
#!/usr/bin/ksh
export ORACLE_HOME=/software/oracle/PROD10gR2
cd /etc/ORACLE/WALLETS/oracle
export EXP_DATE=`. $ORACLE_HOME/bin/orapki cert... (1 Reply)
Discussion started by: yoavbe
1 Replies
7. AIX
I have a question i need clarification. We had a problem on a p520 system and had to pull the battery on the service processor card. That did the trick and system booted. We forgot to set the time in the service processor before booting. Once AIX was booted we changed the date and time there. ... (1 Reply)
Discussion started by: ryan0911
1 Replies
8. Shell Programming and Scripting
Hi Friends,
I have 2 varaibles which contain
START=`date '+ %m/%d/%y %H:%M:%S'`
END=`date '+ %m/%d/%y %H:%M:%S'`
i want the time difference between the two variables in Seconds.
Plz help. (2 Replies)
Discussion started by: i150371485
2 Replies
9. Shell Programming and Scripting
Need assistance . Below code gives me the date but I wanted output as day of the week (wday) .
Code:
use Time::Local;
my $time=timelocal(1,2,3,9,11,2013);
$theTime = localtime($time);
print "$theTime\n";
Result:
Mon Dec 9 03:02:01 2013
Wanted output as only Mon (2 Replies)
Discussion started by: ajayram_arya
2 Replies
LEARN ABOUT OSF1
difftime
difftime(3) Library Functions Manual difftime(3)
NAME
difftime, difftime64 - Compares time values
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <time.h>
double difftime(
time_t time1,
time_t time2);
The following function declaration is a Compaq extension and does not conform to current standards. This function is provided to support
the time64_t data type and is accessible only when the _TIME64_T feature macro is defined during compilation. #include <time.h>
double difftime64(
time64_t time64_1,
time64_t time64_2);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
difftime(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies a time value of type time_t expressed in seconds. Specifies a time value of type time_t expressed in seconds. Specifies a time
value of type time64_t expressed in seconds. Specifies a time value of type time64_t expressed in seconds.
DESCRIPTION
The difftime() function returns a signed time value in seconds that is the difference between the values of the time1 and time2 parameters,
also expressed in seconds.
The difftime64() function works exactly as the difftime() function, but accepts arguments of type time64_t type instead of time_t. This
function declaration is only available when the _TIME64_T feature macro is defined during compilation. See the time(3) reference page for
additional details.
NOTES
The difftime() and difftime64() functions are supported for multithreaded applications.
RETURN VALUES
Upon successful completion the difftime() function returns a value, expressed in seconds, that is the difference between the values of
parameters time1 and time2.
Upon successful completion the difftime64() function returns a value,expressed in seconds, that is the difference between the values of
parameters time64_1 and time64_2.
RELATED INFORMATION
Functions: ctime(3), time(3), timezone(3)
Standards: standards(5) delim off
difftime(3)