Fix a bug and add time unit struct
Refactor IOManager codes
Add IO frequency setting in IOManager