In Python this is the easiest way to do:
int(time.time())*1000The *1000 is required to get the milliseconds from the seconds. Obviously this way is only accurate to the second...if you want to gain more precision you should perhasp go with this:
float(time.time())*1000With this methodology you will not loose the milliseconds due to integer rounding.
No comments:
Post a Comment