MCPcopy Create free account
hub / github.com/VCVRack/Rack / getUnixTime

Function getUnixTime

src/system.cpp:784–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782
783
784double getUnixTime() {
785 // This is not guaranteed to return the time since 1970 in C++11. (It only does in C++20).
786 // However, it does on all platforms I care about.
787 auto duration = std::chrono::system_clock::now().time_since_epoch();
788 return std::chrono::duration<double>(duration).count();
789}
790
791
792double getThreadTime() {

Callers 3

mainFunction · 0.85
initFunction · 0.85
chooseModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected