Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import FastArithmetic, time
- fam = FastArithmetic.FastArithmetic()
- print("Addition: -9223372036854775808 + -9223372036854775808...")
- time.clock()
- print("Result:", fam.add(-9223372036854775808, -9223372036854775808))
- e=time.clock()
- print("Elapsed time:", e)
- print()
- fam.reset()
- print("Subtraction: -6 - -9223372036854775808...")
- e -= time.clock()
- print("Result:", fam.subtract(-6, -9223372036854775808))
- print("Elapsed time:", e)
- print()
- fam.reset() #almost forgot to reset my fam!
- print("Multiplication: -9223372036854775808 * 1...")
- e -= time.clock()
- print("Result:", fam.multiply(-9223372036854775808, 1))
- print("Elapsed time:", e)
- print()
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement