It is a form of harassment, and unfortunately without knowing him, it is hard to determine exactly where it is directed. The thing that is clear, is that he has a low self esteem, and he for some reason is threatened by you.
Using tactics that cause you to question how well you work, and make you refer to others for reassurance, takes the focus off of his short comings, and insecurities. The more you react, the better her looks. The reason he told you about another person in the office, who had nothing to do with you, was simply to see if 1. He could get you to engage in a little gossip 101, and 2. To come up with what he felt was a plausible excuse, for speaking to you about your time tracking.
The best way to fight this person;
As if you do not care. Answer these questions;
1. Am I punctual?
2. Do I complete my work efficiently?
3. Do the people who matter comment or pull me aside about his issues?
4. If no one notices anything, then it is just me. (This means you have power) Why else would he take time he could be working to pester you about NOTHING?
Continue to do well, and then exceed that. Make a spreadsheet to which you keep track of your time, and document it regularly. Set it so that when you come the system automatically documents the time in and out, (he can not argue with the system, that can not be manipulated) If you in fact use a time clock, keep documentation just in case.
Be sure to also start documenting the comments he makes, and the days and times he makes them. And to those comments, do not ask others about them, and do not involve anyone else. This is how he will get YOU to look bad. Because surely he is not making noise about you, and he does not want people to know.
Respond to his 'so you know' with a 'thank you' and 'Right, that was helpful!'
And most importantly, do not allow him to have meetings and side bars with you, when no one is around. If he starts, start to walk away as if you have a fax to get to, he will learn very quickly that he can no longer manipulate you into reacting to him. But that he will have to resort to other feats, this is where your documentation will come in handy.
I am currently in a similar situation. Except this person is a women, and she is a temp. Our issues stem from a clear insecurity in the fact that she has some how chosen me, as her target.....I am not a threat to this women. We work in separate departments. But she has been caught asking about me, and has been negative with me 'no good morning back'
I respond by not allowing her to speak negatively. I do not make direct eye contact with her, as I do not like to be disrespected, showing her that she has not deserved my undivided attention. When she is polite, I look at her. When she is rude, I do not. I nod, but only speak in 3 words 'that is great' 'hope that works' and I bid her a good day. I will tell her to have a good night tonight despite her not speaking because above all else. I am a good person and I am good t all people. I will not let her change that. And in time she as well as he, will bury themselves.
Just do your job, and show everyone who you are. Don't say a word about him to anyone, trust me. Unless you are good at manipulation, you will lose. Just leave the chatter to him.
Good luck. You must be some employee