java - Is execution time of same program for multiple time give different result? -
i have measure execution time of program using system.nanotime() function. every execution giving different execution time. have measure no of clock cycles multiplying processor speed. , due different execution time no of clock cycles coming different. don't know whether correct or doing wrong somewhere. plz suggest answer.
what doing wrong. line of questioning indicates not understand how processors , clock cycles work, @ rudimentary level.
there no way measure processor speed timing how long takes execute java program.
Comments
Post a Comment