Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The time units and accuracy of Realtime #309

Open
xiaoliulivestudy opened this issue Jun 19, 2024 · 0 comments
Open

The time units and accuracy of Realtime #309

xiaoliulivestudy opened this issue Jun 19, 2024 · 0 comments

Comments

@xiaoliulivestudy
Copy link

`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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant