Protected Sub btnGenerateReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnGenerateReport.Click
getreport()
End Sub
as soon as i click on button i want to get time before loading data from this function and after loading data from this function.
So that i can get that how much time this function is taking to load data.
Help.
VulpesPosted Jul 18, 2013, 4:58 AM
rachayita jaiswalPosted Jul 18, 2013, 5:21 AM
rachayita jaiswalPosted Jul 17, 2013, 11:31 PM
Means when i click on button then i should get time and after loading data also i should get time so that i can get that how much time it took to load data.
and one more thing -
i have created a button ans a label just for test time-
code behind -
now if i click on button i am getting 0 ms in label and if i click again on same button i am getting 0.003 ms in label
so i am not able to get exact time.
Please help
Kunal VaishyaPosted Jul 17, 2013, 8:57 AM
You can use like this
System.Diagnostics.Stopwatch
VulpesPosted Jul 17, 2013, 8:50 AM
Dim sw As StopWatch = StopWatch.StartNew()
VulpesPosted Jul 17, 2013, 8:18 AM
rachayita jaiswalPosted Jul 17, 2013, 8:15 AM
StopWatch i am not getting.
VulpesPosted Jul 17, 2013, 8:06 AM