Here’s how to code the time span;
Function ExecuteLargeRec() {
DateTime d1 = DateTime.Now
DateTime d2
TimeSpan ts
‘ Your query here / processing
d2 = DateTime.Now
ts = d1.Subtract(d2)
MessageBox.Show(ts.ToString())
}
Here’s how to code the time span;
Function ExecuteLargeRec() {
DateTime d1 = DateTime.Now
DateTime d2
TimeSpan ts
‘ Your query here / processing
d2 = DateTime.Now
ts = d1.Subtract(d2)
MessageBox.Show(ts.ToString())
}
.net, DateTime, TimeSpan, vb.net
This entry was posted on Saturday, June 12th, 2010 at 3:26 pm and is filed under .NET. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS)