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.

VulpesRank #55 · 29.2K reputationPosted Jul 18, 2013, 12:58 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2013, 4:06 AM EDT
rachayita jaiswal182 reputationPosted Jul 17, 2013, 4:15 AM EDT
StopWatch i am not getting.
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2013, 4:18 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2013, 4:50 AM EDT
Dim sw As StopWatch = StopWatch.StartNew()
Kunal VaishyaRank #990 · 2K reputationPosted Jul 17, 2013, 4:57 AM EDT
You can use like this
System.Diagnostics.Stopwatch
rachayita jaiswal182 reputationPosted Jul 17, 2013, 7:31 PM EDT
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
rachayita jaiswal182 reputationPosted Jul 18, 2013, 1:21 AM EDT