MCPcopy Create free account
hub / github.com/arvidn/libtorrent / timestamp

Function timestamp

examples/client_test.cpp:936–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934}
935
936char const* timestamp()
937{
938 time_t t = std::time(nullptr);
939#ifdef TORRENT_WINDOWS
940 std::tm const* timeinfo = localtime(&t);
941#else
942 std::tm buf;
943 std::tm const* timeinfo = localtime_r(&t, &buf);
944#endif
945 static char str[200];
946 std::strftime(str, 200, "%b %d %X", timeinfo);
947 return str;
948}
949
950void print_alert(lt::alert const* a, std::string& str)
951{

Callers 2

print_alertFunction · 0.85
client_test.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected