Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

You're reading from  Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781786468864
Pages 480 pages
Edition 4th Edition
Languages
Authors (2):
Abhimanyu Singh Abhimanyu Singh
Profile icon Abhimanyu Singh
Deepak Agarwal Deepak Agarwal
Profile icon Deepak Agarwal
View More author details

Table of Contents (18) Chapters

Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface
1. Processing Data 2. Working with Forms 3. Working with Data in Forms 4. Building Lookups 5. Processing Business Tasks 6. Data Management 7. Integration with Microsoft Office 8. Integration with Power BI 9. Integration with Services 10. Improving Development Efficiency and Performance

Calculating code execution time


When working on improving existing code, there is always the question of how to measure results. There are numerous ways to do this, for example, visually assessing improvements, getting feedback from users, using the code profiler and/or trace parser, and various other methods.

In this recipe, we will discuss how to measure the code execution time using a very simple method, just by temporarily adding a few lines of code. In this way, the execution time of the old code can be compared with that of the new one in order to show whether any improvements were made.

How to do it...

  1. In the solution, add a new runnable class and write the following code snippet:
    class PktGetExecutaiontime 
    {         
      /// <summary> 
      /// Runs the class with the specified arguments. 
      /// </summary> 
      /// <param name = "_args">The specified arguments.</param> 
      public static void main(Args _args) 
      {         
        int start...
lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}