Created time since epoch function. Bugfix in linear sampling function.