def timestamp(): d = datetime.now() for i in xrange(10000): jstimestamp(d)
def timestamp(): d = datetime.now() for i in range(10000): jstimestamp(d)
def testTimeStamp(self): dt = datetime.now() ts = jstimestamp(dt)