from comtypes.client import CreateObject
import time

do = CreateObject("testcall.dataobject")

def testcalltime():
    c4 = 0
    a=time.time()
    for d in range (0,10000):
        d=do.method1(c4,1)
        e=do.method2(c4,1)
    b=time.time()
    print b-a

do.startProfile()
testcalltime()
do.printStats("c:\profile.txt")
