This post is machine-translated. The original post in german language can be found here.

Simple time measurement in code

To measure the execution time of a function/logic, you can use System.Diagnostics.Stopwatch:

System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
// ... do something
watch.Stop();
info(strFmt("%1ms", watch.ElapsedMilliseconds));
These post applies to following version:
Dynamics 365 for Finance and Operations

Torben Nehmer 03/26/2020 14:08 | #1


Heinz Schweda 03/28/2020 18:07 | #2


Add comment
 
 

 

 
 
 
Posts of the actual month
März 2024
MoTuWeThFrSaSu
 123
45678910
11121314151617
18192021222324
25262728293031
 
© 2006-2024 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.