fixing build warning

cast time result to (unsigned int)