I have a program in c which runs forever until I press CTRL+C. After the termination I need to show the total time for which the program ran. What to do so as to find the total time for which the program ran? if there is a code for it then please let me know. Thanks
Yes, there is a program called time
.
Run
time ./program
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