I want to know any available Code compiler (C++ specifically) which gives the total execution time of submitted code.
To my knowledge, Ideone being good online compiler doesn't provide this feature. It'd very great if there exists a service to check the execution time (Total Running time) for a code.
rextester provides this information, for example I just ran their default C++ program I see the following output above the results:
Compilation time: 0.83 sec, absolute running time: 0.15 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0.99 sec (cached)
those are pretty rough numbers and your are limited to 5
seconds of cpu time. The other simple option is to use time
when you execute on Coliru. For example I modified the default command as follows:
set -x ; g++-4.8 -std=c++11 -O2 -Wall -pedantic -pthread main.cpp && time ./a.out
^^^^
this will provide you with output like this:
real 0m0.005s
user 0m0.000s
sys 0m0.008s
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With