[PYTHON] measurement of time

Method 1

test.py


    import time
    start=time.time()
    #processing
    stop=time.time()
    diff=stop-start
    print diff * 10000

Method 2

test.py


    import time
    starttime = time.clock()
(Calculation 1)
    time1 = time.clock()
(Calculation 2)
    time2 = time.clock()
(Calculation 3)
    time3 = time.clock()
    print time1-starttime,time2-time1,time3-time2

Recommended Posts

measurement of time
Measurement of execution time
python time measurement
Selection of measurement data
Python execution time measurement memo
Calculation time measurement using maf
Time measurement using a clock
Simple FPS measurement of python
Execution time measurement with Python With
Calculation of time series customer loyalty
Collective measurement of Volume using FSL
Process the result of% time,% timeit
Differentiation of time series data (discrete)
Time series analysis 3 Preprocessing of time series data
python> Processing time measurement> time.time () --start_time
Statistical interpretation of Anigasaki character turn time
[Python] Summary of array generation (initialization) time! !! !!
[Python] Accelerates loading of time series CSV
Calculation of forward average (Piyolog sleep time)
Time series analysis 4 Construction of SARIMA model
Time zone
Conversion of time data in 25 o'clock notation
Summary of vtkThreshold (updated from time to time)
Summary of gcc options (updated from time to time)
Time variation analysis of black holes using python
Shortening the analysis time of Openpose using sound
Memorandum (acquisition / conversion of "user-defined" time, cross tabulation)
Acquisition of time series data (daily) of stock prices
Read the output of subprocess.Popen in real time
Smoothing of time series and waveform data 3 methods (smoothing)
Impressions of receiving LPIC-1. "Recommendation / Difficulty / Study time"
View details of time series data with Remotte
Mask RCNN Object Measurement Package (Measurement of object diameter with Mask RCNN)
At the time of python update on ubuntu