added typedef n_time for OS without n_time type