It would help me if you told us what it is you're trying to do. Right now your program creates a counter, a, and then prints about 10,000 numbers. But you're not really doing anything with the time module. If you could tell us what you want, maybe I could whip up an example.
Here is an example. Make sure you check out the link I put in the comments.
# Here is an excellent set of examples you should look at
first = datetime.datetime.now()
while a < 10000:
a += 1
second = datetime.datetime.now()
print 'The whole thing took ' + time.mktime(first.timetuple()) - time.mktime(second.timetuple()) + ' seconds.'
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...