Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2008 22:04
Show Gist options
  • Save anonymous/39145 to your computer and use it in GitHub Desktop.
Save anonymous/39145 to your computer and use it in GitHub Desktop.
let startTimer minutes checkinterval =
let endtime = DateTime.Now.AddMinutes(minutes) in
let rec interval endtime checkinterval =
if DateTime.Now >= endtime then
print "Timer done"
else
print "checked at %s" DateTime.Now.ToShortTimeString
System.Threading.Thread.Sleep(checkinterval*1000)
interval endtime checkinterval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment