This commit is contained in:
Paul Pan 2023-11-04 00:24:22 +08:00
parent bb41e30cba
commit dfa26e7693
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ const std::regex date_match[] = {
};
void stat_date(const DataSource &source) {
spdlog::info("stat_date({})", magic_enum::enum_name(source));
timeit(fmt::format("stat_date({})", magic_enum::enum_name(source)));
std::map<std::string, size_t> date_map;
std::map<size_t, size_t> type_map;

View File

@ -44,7 +44,7 @@ auto is_neighbour(const Cord &a, const Cord &b) -> bool {
}
void stat_keystroke(const DataSource &source) {
spdlog::info("stat_keystroke({})", magic_enum::enum_name(source));
timeit(fmt::format("stat_keystroke({})", magic_enum::enum_name(source)));
std::map<std::string, size_t> stat;
for (auto const &password : passwords(source)) {

View File

@ -4,7 +4,7 @@
#include "defs.hpp"
void stat_length(const DataSource &source) {
spdlog::info("stat_length({})", magic_enum::enum_name(source));
timeit(fmt::format("stat_length({})", magic_enum::enum_name(source)));
std::map<size_t, size_t> stat;
for (auto const &password : passwords(source)) ++stat[password.size()];

View File

@ -30,7 +30,7 @@ std::string get_struct(const std::string &password) {
}
void stat_struct(const DataSource &source) {
spdlog::info("stat_struct({})", magic_enum::enum_name(source));
timeit(fmt::format("stat_struct({})", magic_enum::enum_name(source)));
std::map<std::string, size_t> stat;
for (auto const &password : passwords(source)) ++stat[get_struct(password)];