MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / print_time

Function print_time

libCacheSim/traceAnalyzer/utils/include/utilsPrint.h:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace utilsPrint {
13static 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
20static inline void print_progress(double perc) {
21 static double last_perc = 0;

Callers 2

runMethod · 0.85
_reverse_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected