WIP Backend System Redesign Step 1
- Created 1 Context for Backend Management and Sharing - Made every class that used a static Backend require the Context or specific Backend - Bring Back 3ds support
This commit is contained in:
@@ -25,13 +25,13 @@ SOFTWARE.
|
||||
#include <pd/drivers/drivers.hpp>
|
||||
|
||||
namespace PD::TT {
|
||||
PD_API void Beg(const std::string& id) {
|
||||
auto trace = OS::GetTraceRef(id);
|
||||
trace->SetStart(PD::OS::GetNanoTime());
|
||||
PD_API void Beg(OsDriver& os, const std::string& id) {
|
||||
auto trace = os.GetTraceRef(id);
|
||||
trace->SetStart(os.GetNanoTime());
|
||||
}
|
||||
|
||||
PD_API void End(const std::string& id) {
|
||||
auto trace = OS::GetTraceRef(id);
|
||||
trace->SetEnd(PD::OS::GetNanoTime());
|
||||
PD_API void End(OsDriver& os, const std::string& id) {
|
||||
auto trace = os.GetTraceRef(id);
|
||||
trace->SetEnd(os.GetNanoTime());
|
||||
}
|
||||
} // namespace PD::TT
|
||||
Reference in New Issue
Block a user