Erlang Time scheduling