add some tests for windows. convert windows time units to seconds.
many changes to windows. try to improve code quality