About 12,200 results
Open links in new tab
  1. How do I measure elapsed time in Python? - Stack Overflow

    The python cProfile and pstats modules offer great support for measuring time elapsed in certain functions without having to add any code around the existing functions.

  2. How do I get the current time in Python? - Stack Overflow

    557 How do I get the current time in Python? The time module The time module provides functions that tell us the time in "seconds since the epoch" as well as other utilities.

  3. python - How to properly use time.time () - Stack Overflow

    May 10, 2020 · I am trying to time a running function. But I need to know how many hours/minutes/seconds does it takes. I am using time.time(), but I don't understand the output. How …

  4. What does '%% time' mean in python-3? - Stack Overflow

    Mar 21, 2018 · What does %%time mean in python? I am using python 3 and have some source code containing %%time Does this call the time module? or does it have another function?

  5. time - High-precision clock in Python - Stack Overflow

    The standard time.time() function provides sub-second precision, though that precision varies by platform. For Linux and Mac precision is +- 1 microsecond or 0.001 milliseconds. Python on …

  6. How do I get time of a Python program's execution?

    Oct 13, 2009 · To measure a Python program's execution time, use the time module. Record the start time with time .time () before the code and the end time after. Subtract start from end to get the …

  7. datetime - How to get UTC time in Python? - Stack Overflow

    Apr 11, 2013 · For Python 3, use datetime.now(timezone.utc) to get a timezone-aware datetime, and use .timestamp() to convert it to a timestamp.

  8. Python's time.clock() vs. time.time() accuracy? - Stack Overflow

    time.clock () On Unix, return the current processor time as a floating point number expressed in seconds. The precision, and in fact the very definition of the meaning of “processor time”, depends …

  9. python - How do I make a time delay? - Stack Overflow

    We're building a database here that will be around for years to come, with people finding answers via Google, and lots of people never get around to reading the comments. This would make a great new …

  10. Get POSIX/Unix time in seconds and nanoseconds in Python?

    On Python 3, the time module gives you access to 5 different types of clock, each with different properties; some of these may offer you nanosecond precision timing.