[feature] new timer API gettimeof(type)