What is the difference between <chrono> and <ctime>?

Viewed 9233

For measuring execution time of a function, I can use both. But what is the difference between using <chrono> and <ctime>? Should I prefer one instead of another?

2 Answers
Related