I am running a C++ code which contains a Matrix multiplication of 2048 X 2048 matrices. Is there a library or a package or a software which can give me the Raw time and FLOPs for my program?

  • What is "raw time" for you? CPU time?
    – Robert
    Commented Jan 14, 2022 at 14:43
  • Yes it is CPU time
    – user78439
    Commented Jan 14, 2022 at 14:44

1 Answer 1


On Linux, you could use the time(1) and perf(1) command and use related functions documented in time(7), in particular clock_gettime(2).

The RefPerSys open source software uses these.

With a recent C++ compiler (e.g. GCC) use also <chrono> defined functions.

My opinion is that on most dekstop, server, or laptop computers in 2022, the FLOPS is not very significant or meaningful. What about OpenCL and GPGPUs?

Contact me by email at [email protected] (near Paris in France) for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.