| 11 | |
| 12 | namespace utilsPrint { |
| 13 | static inline void print_time() { |
| 14 | static time_t t; |
| 15 | t = time(nullptr); |
| 16 | struct tm *p = localtime(&t); |
| 17 | std::cout << "[" << std::setw(2) << p->tm_hour << ":" << std::setw(2) << p->tm_min << ":" << std::setw(2) << p->tm_sec << "] "; |
| 18 | } |
| 19 | |
| 20 | static inline void print_progress(double perc) { |
| 21 | static double last_perc = 0; |
no outgoing calls
no test coverage detected