I have the following piece of code
import time
time.strftime("%Y%m%d%H%M%S")
As you see the above will only print at the second level at most. So if I call this function twice within the same second then it will print the same value.
To have a further level of granularity how do I call the millisecond clock that runs within a particular second so that few milliseconds have passed by the time I call this function again and so I get a new value at the second call