FIX: changed type of time buffer