I am stuck when one of my functions takes some time to complete. I have a hierarchy of objects in an object using object models and ArrayList (s). I just want to know the methods by which I can debug the code to check which code instruction takes time to execute.
Two solutions:
Just use it.
long startTime = System.nanoTime(); YourMethode(); long endTime = System.nanoTime(); long MethodeDuration = (endTime - startTime);
Source: https://habr.com/ru/post/1206860/More articles:How to disable form validation for ng-click? - angularjsHow to add a runtime column in a grid using ui-grid - angularjsAutomation error while receiving ReadyState object of InternetExplorer object - internet-explorerHow to insert an infinity symbol in the X axis of a Matlab Bar chart? - matlabQMessageBox to remove at close - c ++Can SOLR match one-to-one terms with agreed terms? - searchHow to use Meteor.apply with options? - javascriptJava Generics: unable to create array of nested class - javaAngular JS Module Testing Tutorials with Examples - angularjsLoad the C ++ DLL into matlab, which calls functions in another DLL - c ++All Articles