mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
Merge pull request #23 from gtarcoder/master
Added dump&&load interface for trivially_copyable types
This commit is contained in:
@@ -22,9 +22,9 @@ void showtime(const char *name, std::function<void ()> doit)
|
||||
doit();
|
||||
auto t2 = std::chrono::high_resolution_clock::now();
|
||||
auto elapsed = milliseconds<double>(t2 - t1).count();
|
||||
printf("%s: %.3fms\n", name, (int)elapsed / 1000.0f);
|
||||
printf("%s: %.3fs\n", name, (int)elapsed / 1000.0f);
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
using MapType = phmap::flat_hash_map<bitset<42>, int>;
|
||||
|
||||
Reference in New Issue
Block a user