Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Performance

Status
Not open for further replies.

checkai

Programmer
Jan 17, 2003
1,629
0
0
US
I'm trying to create a report that shows the performance of each, but getting some results that I'm not sure are correct. Please review my statement to see if I'm manipulating the milliseconds appropriately. Thanks!

Code:
LEFT('0' + convert(char, CONVERT(int,(x.TimeRendering/3600000) % 24)),2) + ':' + --Hours
		LEFT('0' + convert(char, CONVERT(int,(x.TimeRendering/60000) % 60)),2) + ':' + --Minutes
		LEFT('0' + convert(char, CONVERT(int,(x.TimeRendering/1000) % 60)),2) + ':' + --Seconds
		LEFT('0' + convert(char, CONVERT(Int,(x.TimeRendering % 1000))),2) as TimeRendering,--Milliseconds 
		x.TimeRendering+x.TimeDataRetrieval+x.TimeProcessing as TotalTimeActual,
		LEFT('0' + convert(char, CONVERT(int,((x.TimeRendering+x.TimeDataRetrieval+x.TimeProcessing)/3600000) % 24)),2) + ':' + --Hours
		LEFT('0' + convert(char, CONVERT(int,((x.TimeRendering+x.TimeDataRetrieval+x.TimeProcessing)/60000) % 60)),2) + ':' + --Minutes
		LEFT('0' + convert(char, CONVERT(int,((x.TimeRendering+x.TimeDataRetrieval+x.TimeProcessing)/1000) % 60)),2) + ':' + --Seconds
		LEFT('0' + convert(char, CONVERT(Int,((x.TimeRendering+x.TimeDataRetrieval+x.TimeProcessing) % 1000))),2) as TotalTime,--Milliseconds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top