About 50 results
Open links in new tab
  1. 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 …

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

  3. How do I measure elapsed time in Python? - Stack Overflow

    This gives the execution time in seconds. Another option since Python 3.3 might be to use perf_counter or process_time, depending on your requirements. Before 3.3 it was recommended to use time.clock …

  4. python - time.time () or time.perf_counter () — which is faster ...

    Feb 3, 2021 · The choice between time.time() and time.perf_counter() depends on the context in which you will use the function. That's because each function deals with a different "type of time". …

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

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

  7. unix - Why is 1/1/1970 the "epoch time"? - Stack Overflow

    Jun 23, 2011 · 504 Early versions of unix measured system time in 1/60 s intervals. This meant that a 32-bit unsigned integer could only represent a span of time less than 829 days. For this reason, the …

  8. How can I get current time and date in C++? - Stack Overflow

    Is there a cross-platform way to get the current date and time in C++?

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

  10. c - What is time_t ultimately a typedef to? - Stack Overflow

    Apr 6, 2019 · The time_t Wikipedia article article sheds some light on this. The bottom line is that the type of time_t is not guaranteed in the C specification. The time_t datatype is a data type in the ISO …