Menu

#267 How to get execution/computation time?

open
nobody
None
9
2021-06-08
2021-05-26
No

Greetings all, I will appreciate your help in figuring out how to obtain the time taken to execute the "fit" procedure in gnuplot (in Windows). i.e. I want to figure out how long does it take to estimate the fit parameters. Any suggestions on how to accomplish this (in Windows)?

Discussion

  • Gabriel Dupras

    Gabriel Dupras - 2021-05-29

    You could use the time function before and after the fit. Something like this:

    t1 = time(0.0)
    fit f(x) 'data.txt' via a
    t2 = time(0.0)
    print t2 - t1
    
     
  • Robert Lauder

    Robert Lauder - 2021-06-08

    Thank you very much. This works for me!

     

Log in to post a comment.