from time import time
def test:
pass
start = time()
for index in range(0,1000):
test()
end = time()
print 'total time : ' + str(end - start)
def test:
pass
start = time()
for index in range(0,1000):
test()
end = time()
print 'total time : ' + str(end - start)
간단한 python code. 별거 아닌데, 익숙치가 않아서 모듈들이 헷갈린다.
기억력을 믿지 말고 검색과 기록을 생활화 해야한다^^
'개발 끄적임들 > 프로그래밍 끄적임' 카테고리의 다른 글
SQLObject tip#1 Unit Test에서의 dburi 설정하기 (0) | 2007.07.25 |
---|---|
간단한 python code #2 : Python Test Suite 적용 (0) | 2007.07.06 |
ActiveMQ 4.1을 이용한 간단한 메시지 큐 만들기 (0) | 2006.06.26 |
castor 라이브러리를 이용한 XML binding Object (0) | 2006.06.22 |
apache XML-RPC v3.0를 이용한 간단한 XMLRPC 웹 프로그래밍 (0) | 2006.05.28 |