About 50 results
Open links in new tab
  1. python - How to properly use time.time () - Stack Overflow

    May 10, 2020 · 3 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 …

  2. 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.

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

    559 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.

  4. 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 …

  5. python - Can't install time module - Stack Overflow

    Mar 1, 2017 · Did you happen to name a file time.py (or a folder containing Python modules time)? If it's in your working directory, it will shadow the built-in time module.

  6. python - Full-featured date and time library - Stack Overflow

    Python's standard library's datetime module is deliberately limited to non-controversial aspects that aren't changing all the time by legislative fiat -- that's why it deliberately excludes direct support for …

  7. time - how do I make a Timer in Python - Stack Overflow

    Nov 21, 2021 · How do you create a timer in python? My project is a speed typing test and the timer is there to time the length it takes the user to type. The first task the user types is the alphabet, as fast …

  8. python - Measuring elapsed time with the Time module - Stack Overflow

    Sep 1, 2010 · With the Time module in python is it possible to measure elapsed time? If so, how do I do that? I need to do this so that if the cursor has been in a widget for a certain duration an event happens.

  9. 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.

  10. I'm trying to figure out how to install this lib on python (time)

    Jun 21, 2020 · 1 im new to python and i was trying to install "time" library on python, i typed pip install time but the compiler said this