View Single Post
  #2  
Old 01-09-2012, 09:07 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,049
There is a property on the build object with the build start time:
http://www.kinook.com/VisBuildPro/Ma...meproperty.htm

And to calculate:
Code:
sec = DateDiff("s", Builder.StartTime, Now)
hr = Int(sec / 3600)
sec = sec - hr * 3600
min = Int(sec / 60)
sec = Int(sec Mod 60)

' format in hh:mm:ss format	
strElapsed = vbld_PadLeft(CStr(hr), 2, "0") & ":" & _
	vbld_PadLeft(CStr(min), 2, "0") & ":" & vbld_PadLeft(CStr(sec), 2, "0")
http://www.w3schools.com/vbscript/func_datediff.asp
Reply With Quote