mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
Adding "eoskeygen" namespace.
This commit is contained in:
parent
20a47d11b5
commit
0e9d23086f
22 changed files with 95 additions and 11 deletions
|
|
@ -29,6 +29,8 @@ using std::chrono::steady_clock;
|
|||
using std::chrono::duration;
|
||||
using std::chrono::time_point;
|
||||
|
||||
namespace eoskeygen {
|
||||
|
||||
void benchmark(size_t num_keys, struct benchmark_result* res) {
|
||||
|
||||
time_point<steady_clock> start;
|
||||
|
|
@ -48,3 +50,5 @@ void benchmark(size_t num_keys, struct benchmark_result* res) {
|
|||
res->sec = duration<float>(steady_clock::now() - start).count();
|
||||
res->kps = static_cast<float>(num_keys) / res->sec;
|
||||
}
|
||||
|
||||
} // namespace eoskeygen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue