how to calculate processing time in milliseconds

I want to calculate processing time in milliseconds as most of function I found give me in second. I am new user to C++, the code will be running under linux.

In windows, I like to use
QueryPerformanceCounter and QueryPerformanceFrequency
with Linux, you have many options:
high_resolution_clock from C++ ( )
microsec_clock from boost ( )
clock_gettime from POSIX ( )
and probably something linux-specific, too.

There's also the commandline utility and the shell builtin time which measures wall time, CPU time, and system time spent by a given application.
Last edited on
high_resolution_clock from C++ ( )

That's Awesome.
The clocks in <chrono> are wall clocks; they deal with elapsed time.
Thanks a lots,,,
Topic archived. No new replies allowed.