I have written script component using vb.net and using following:
Dts.VariableDispenser.LockForWrite("User::StepStartTime")
Dts.VariableDispenser.LockForWrite("User::StepEndTime")
Assigned value to this at Start
vars(“User::StepStartTime”).Value = Date.Now
Assigned value to this at End
vars(“User::StepEndTime”).Value = Date.Now
I’m struggling to find a function which can give difference in minutes between these two above dates.
Regards
Just subtract them…
References
http://msdn.microsoft.com/en-us/library/1905yhe2.aspx
http://msdn.microsoft.com/en-us/library/system.timespan.aspx