what is java's System.currentTimeMillis() in python

skip at pobox.com skip at pobox.com
Thu Sep 7 23:08:32 EDT 2006


    neoedmund>     public static native long currentTimeMillis();

    neoedmund> python's time.clock() time.time() return a float, i think
    neoedmund> it's not as handy as java's currentTimeMillis() any good
    neoedmund> solution?

How about

    int(time.clock() * 1000)

or

    int(time.time() * 1000)

?

Skip



More information about the Python-list mailing list