i want to know how long will take to datatable eqaul tablecollection dataset ,i mean load or eqaul process time or prograssBar
datatable tb;
dt=tablecollection(TableName); //
i want to know how long will take to datatable eqaul tablecollection dataset ,i mean load or eqaul process time or prograssBar
datatable tb;
dt=tablecollection(TableName); //
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tahir AnsariRank #366 · 6.8K reputationPosted Aug 9, 2023, 8:58 AM EDT
DataTable tb = new DataTable(); // Assuming you have initialized the DataTable and TableCollection // Start the stopwatch Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); // Perform data processing (loading or equalizing) // Example: tb = dt.Tables["TableName"].Copy(); // Stop the stopwatch stopwatch.Stop(); // Calculate elapsed time TimeSpan elapsedTime = stopwatch.Elapsed; // Display progress bar and/or elapsed time Console.WriteLine("Elapsed Time: " + elapsedTime); // Optionally, update a progress bar (if using a GUI application) // Example: // progressBar.Value = 100; // Set progress to 100% when done