<script type="text/javascript">
window.onload = function(){
(function(){
var date = new Date(), div = document.getElementsByTagName('div');
div[0].innerHTML = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds()+':'+date.getMilliseconds();
div[1].innerHTML = new Date().setTime(new Date(date).getTime());
window.setTimeout(arguments.callee, 1);
})();
};
</script>
<div></div>
<div></div>