Refresh time...Can anyone help me please??

Aren't time elements unsigned long?

PaulS comment about mixing types still applies.