Javascript has the handy console.time(), and console.timeEnd() for quickly keeping track of how much time is spent in specific parts of the code.
Is there any similar package for Java, logging which segments of code are taking a long time, and/or reporting on the averages, or other reports?
I know there's subtracting the current timestamp which is easy to make a logging class out of, I'm just curious if there's anything widely used to do this sort of logging already.
Aucun commentaire:
Enregistrer un commentaire