Download or view 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."]
Download or view 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 20217 days, 23 hours, 59 minutes ago.