[erlang-questions] perform a function on a fixed time interval

Max Lapshin max.lapshin@REDACTED
Tue Aug 24 13:11:27 CEST 2010


This task is very important for erlyvideo, because video frames must
arrive according to real time.

http://github.com/erlyvideo/erlyvideo/blob/master/src/media/media_ticker.erl#L183

This is how I've solved it.

We take wall clock on start and then on each cycle we calculate how
much should we sleep.


More information about the erlang-questions mailing list