conjunction
Used to change the subject or add a related remark in conversation or writing. Often appears at the beginning of a sentence.
時に、あの件はどうなりましたか。
By the way, what happened with that matter?
adverb
sometimes; occasionally; on occasion
Adverbial use meaning 'at times' or 'now and then'. Can appear mid-sentence or at the beginning.
彼は時に遅刻することがある。
He is sometimes late.