MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / print_date_time

Function print_date_time

smallthinker/examples/parallel/parallel.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131};
132
133static void print_date_time() {
134 std::time_t current_time = std::time(nullptr);
135 std::tm* local_time = std::localtime(&current_time);
136 char buffer[80];
137 strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", local_time);
138
139 LOG_INF("\n");
140 LOG_INF("\033[35mrun parameters as of %s\033[0m\n", buffer);
141 LOG_INF("\n");
142}
143
144// Define a split string function to ...
145static std::vector<std::string> split_string(const std::string& input, char delimiter) {

Callers 1

mainFunction · 0.70

Calls 1

localtimeFunction · 0.85

Tested by

no test coverage detected