BASIC

Author Topic: How calculate time of a function (something like Valgrind?¿)  (Read 635 times)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Hi folks, how I can calculate the time needs a function to do his work?¿...

I want say something like the TIME command on Linux, (I think this command says the time of all Code, not only function, but is enough for my needs)

Thanks in advance.


Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1781
    • View Profile
    • Homepage
There is a profiler function in the menu that lists time in all functions so you can find your bottlenecks.

Compiler->Profiler->Active
and ->Output after running the game/program.

« Last Edit: 2019-Feb-19 by Moru »

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4240
    • View Profile
    • Portfolio
ops, Moru got there faster on the EN thread! As he said. :good:

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Thanks a lot to both!!!  :good: :booze: