suntimetest.frink

View or download suntimetest.frink in plain text format


// Timing test for astronomical library.

use sun.frink

lat = 40 degrees
long = 105 degrees

iters = 1000

start = now[]

for a = 1 to iters
  [azimuth, altitude] = refractedSunAzimuthAltitude[now[], lat, long]

end = now[]

println["The loop took " + (end - start -> seconds) + " seconds."]
println["This is " + (iters / (end-start) -> s^-1) + " operations/sec."]


View or download suntimetest.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 17590 days, 6 hours, 43 minutes ago.