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

Function print_date_time

examples/parallel/parallel.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78static void print_date_time() {
79 std::time_t current_time = std::time(nullptr);
80 std::tm* local_time = std::localtime(&current_time);
81 char buffer[80];
82 strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", local_time);
83
84 printf("\n\033[35mrun parameters as at %s\033[0m\n", buffer);
85}
86
87// Define a split string function to ...
88static std::vector<std::string> split_string(const std::string& input, char delimiter) {

Callers 1

mainFunction · 0.70

Calls 2

localtimeFunction · 0.85
printfFunction · 0.85

Tested by

no test coverage detected