problem with setInterval

problem with setInterval

here's my code I also tried text but in either case  timestamp is displayed in the div with id time but not updated.
  1. $(document).ready(function() {
  2.     var timestamp = jQuery.now();
  3.     setInterval(function(){
  4.     $('#time').html(timestamp);
  5.     }, 1000);
  6. });