How to check time and memory for compilation a program?
PremTiwari1 (3)

How to check time and memory for compilation a program

You are viewing a single comment. View All
SuperUser111 (9)

If you're using Java, you can use the System.currentTimeMillis() function to record the time the program started, and then use the System.currentTimeMillis() function at the end of the program.

By subtracting the new System.currentTimeMillis() by the old System.currentTimeMillis() to determine how long the program took to compile.