In this case: http://stackoverflow.com/questions/18026506/i-need-something-similar-to-sleep-function-for-a-program-that-uses-opengl
I probably did a piss poor job as a teacher, but it got me thinking, how would one approach this in a functional language? I did my share of Haskell when it was still a pure academic experiment, but never really took to it.
So, how would a functional approach to this simple but natural problem look like?