added OS guards in Time.cpp