add util.time, switch all to use util.time; improve util.file tests