I’ve been using sublime 3 for a while now, I wanted to ask if such a task is possible, the build time which is shown in terminal window always exceeds 1s. I wanted to know if there was an option for printing the Execution time(taking input via a file, which is already in the code and printing the execution time as such)
Such as in the image it shows [Finished in 1.3s], I would rather like the execution time to printed, is there any way for this.
OS: Ubuntu 19.10
using g++ compiler of ubuntu via default.
Thank you.
The input/output is also using freopen in C++.
Execution Time for G++ as output
doomsday861
#1
0 Likes
bschaaf
#2
Sublime Text can’t distinguish between compiling and running your program. Your easiest solution would be to run the program with time (eg: time ./a.out), or do your own measurement in your program.
0 Likes
