#!/usr/bin/env python

import time
filePath=open("getGold.log",'r')

def test1():
	start =time.time()

	for line in filePath.readlines():
		uk=line.split(':')[1].strip(';')

	end = time.time()

	print end-start

def test2():
	start = time.time()
	for line in filePath:
		uk=line.split(':')[1].strip(';')
	end = time.time()
	print end-start

if __name__ == "__main__":
	test2()
	test1()

e17c76b1e5151c4e1b91609caadbe9dce7b6487e
#!/usr/bin/env python

import time
filePath=open("getGold.log",'r')

def test1():
	start =time.time()

	for line in filePath.readlines():
		uk=line.split(':')[1].strip(';')

	end = time.time()

	print end-start

def test2():
	start = time.time()
	for line in filePath:
		uk=line.split(':')[1].strip(';')
	end = time.time()
	print end-start

if __name__ == "__main__":
	test2()
	test1()
