NEW IN THIS VERSION
-timer capability added
TO DO
- network file creation/copy should be possible
==============================================
Code
-----------
#creates files which are 1 mb
# 1 MB = 1048576
#PROGRAMMER NOTES
#to measure time taken for python code snippets, check out
#
http://www.python.org/doc/2.4/lib/module-timeit.html
#For more info on using datetime check out
#
http://linux.byexamples.com/archives/364/python-manipulate-date-and-
time-variables/
import time
start = time.clock()
for i in range(50):
st = 'X'
somebignumber = 102400
fh = open('junk' + str( i) ,'wb')
for n in xrange(somebignumber):
fh.write(st)
fh.close()
else:
end = time.clock()
print "10 files created, each of 100 KB, took about ",end - start , "
secs."