measure time of GetSharedSecret