timefunc.frink

Download or view timefunc.frink in plain text format


// Test program for testing function call timing.

f[x,y,z=10] := sin[1.0 x/y]

var start
var end

for a = 1 to 10
{
   start = now[]
   for i=1 to 10000
      f[2i, 3i ,4i]
   end = now[]
   println["Time is " + (end-start -> "s")]
}



Download or view timefunc.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 19355 days, 11 hours, 34 minutes ago.