python> Processing time measurement> time.time () --start_time

Operating environment


Ubuntu 14.04 LTS desktop amd64
GeForce GTX 750 Ti
ASRock Z170M Pro4S [Intel Z170chipset]
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v7.5
Python 2.7.6

I'm learning the process of class identification using a mechanism called TensorFlow.

I'm studying here. http://blog.brainpad.co.jp/entry/2016/03/28/170000

fully_connected_feed.py In, time.time () is used as a method to measure the processing speed.

import time

...
      start_time = time.time()

      #Processing something

      duration = time.time() - start_time

      print('Step %d: loss = %.2f (%.3f sec)' % (step, loss_value, duration))

It seems to be in seconds.

https://docs.python.org/2.7/library/time.html#time.time

Recommended Posts

python> Processing time measurement> time.time () --start_time
python time measurement
Execution time measurement with Python With
[Python] Matrix multiplication processing time using NumPy
First time python
measurement of time
python image processing
Python file processing
First time python
A clever way to time processing in Python
Python distributed processing Spartan
Python: Time Series Analysis
File processing in Python
Function execution time (Python)
Python: Natural language processing
Communication processing by Python
Multithreaded processing in python
How to measure processing time in Python or Java
[Python] Measures and displays the time required for processing
First Python image processing
Python time series question
Text processing in Python
Queue processing in Python
Output python execution time
Time floor function (Python)
Image processing with Python
Measurement of execution time
Python string processing illustration
Various processing of Python
Tips for Python beginners to use the Scikit-image example for themselves 8 Processing time measurement and profiler
Image processing with Python (Part 2)
100 Language Processing with Python Knock 2015
UTF8 text processing in python
python3 Measure the processing speed.
Use Measurement Protocol in Python
"Apple processing" with OpenCV3 + Python3
Calculation time measurement using maf
Acoustic signal processing with Python (2)
Acoustic signal processing with Python
Asynchronous processing (threading) in python
100 Language Processing Knock Chapter 1 (Python)
100 Language Processing Knock Chapter 2 (Python)
Image processing with Python (Part 1)
Simple FPS measurement of python
Image processing with Python (Part 3)
Image processing by python (Pillow)
Post processing of python (NG)
Image Processing Collection in Python
[Python] Plot time series data
Time synchronization (Windows) with Python
Using Python mode in Processing
[Python] Iterative processing (for, while)
[Python] Image processing with scikit-image
Write processing time measurement a little easier using the with clause