JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
541 stars 166 forks source link

The time units and accuracy of Realtime #309

Open xiaoliulivestudy opened 2 months ago

xiaoliulivestudy commented 2 months ago

`groupObj = PairingGroup('SS512') cpabe = CPabe_SP21(groupObj)

def start_bench(group): group.InitBenchmark() group.StartBenchmark(["RealTime"])

def end_bench(group): group.EndBenchmark() benchmarks = group.GetGeneralBenchmarks() real_time = benchmarks['RealTime'] return real_time

setup_time=0 for i in range(10): start_bench(groupObj) (pk, mk) = cpabe.setup(len(U)) setup_time += end_bench(groupObj) result.append(setup_time*100) ` Hello, I would like to inquire about the unit of output for this Readtime? ns or ms