————

Code: Alles auswählen
auto now_c = std::chrono::system_clock::to_time_t(now);
std::cout << std::put_time(std::localtime(&now_c), "%c") << '\n';
Code: Alles auswählen
std::string FormatTime(std::chrono::system_clock::time_point time)
{
auto ctime = std::chrono::system_clock::to_time_t(time);
tm b;
localtime_s(&b, &ctime);
std::stringstream ss;
ss << std::setfill('0') << 1900+b.tm_year << "-" << std::setw(2) << b.tm_mon+1 << "-" << std::setw(2) << b.tm_mday << " " << b.tm_hour << ":" << std::setw(2) << b.tm_min << ":" << std::setw(2) << b.tm_sec;
return ss.str();
}
http://mridgers.github.io/clink/ hilft.Jonathan hat geschrieben:Und nur um nochmal eins nachzulegen: Es ist eh schon eine Schande wie unglaublich schlecht die Standard-Konsole ist, wenn man bedenkt, dass man nicht einmal vernünftig Text markieren kann (bin gerade noch auf Win7, aber auch damals hätte es schon viel besser sein müssen...).
Ich hab das jetzt ein wenig benutzt, es sorgt vor allem dafür, dass das UI ein wenig bunter ist. Aber sinnlos ist das bestimmt nicht für jeden, selbst wenn er täglich programmiert.mrz hat geschrieben:Sehe ich den Sinn davon nicht. Evtl für Hobbyprogrammierer.
Wer täglich programmiert nutzt nicht mehr die Maus für Navigation und klickt auf Tabs.
Nee; ich wollte letzte Woche damit anfangen, aber die Zeit :(Oprah Noodlemantra hat geschrieben:Nutzt du Intellij?
Code: Alles auswählen
Vector3f wo = -ray.d, wi;
In practice, compilers limit template instantiation depth, so this is more of a theoretical problem than a practical one.
Yeah. Did this a while back and I *thought* I had turned off telemetry. But nope.
The only way to stop telemetry is to block it at the router...which breaks Windows.
i blocked a lot of this stuff as well at the switchport at home and surprise, windows broke
Very interesting... What specifically about windows breaks, what happens? Does one get a bluescreen?
certain processes get stuck waiting for replies for things they think have been sent, lots of unexplained pauses and freezes