I did this myself and posted it on github if it can be useful:
https://github.com/Lwangaman/jQuery-Clock-Plugin
It uses jquery, it's basically a jquery plugin, and it can take a server timestamp to start with. The css can also be easily modified to one's own likings.