GLBasic forum

Main forum => GLBasic - en => Topic started by: mentalthink on 2019-Feb-19

Title: How calculate time of a function (something like Valgrind?¿)
Post by: mentalthink on 2019-Feb-19
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.

Title: Re: How calculate time of a function (something like Valgrind?¿)
Post by: Moru on 2019-Feb-19
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.

Title: Re: How calculate time of a function (something like Valgrind?¿)
Post by: erico on 2019-Feb-19
ops, Moru got there faster on the EN thread! As he said. :good:
Title: Re: How calculate time of a function (something like Valgrind?¿)
Post by: mentalthink on 2019-Feb-20
Thanks a lot to both!!!  :good: :booze: