properly format ruby, add time measurement