mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +12:00
20 lines
No EOL
607 B
C++
20 lines
No EOL
607 B
C++
#include "../include/log.h"
|
|
|
|
void Logger::init(std::string filename) {
|
|
logFile.open(filename, std::fstream::out);
|
|
}
|
|
|
|
void Logger::logSentMessage(std::string rqType, unsigned int id) {
|
|
end = std::chrono::system_clock::now();
|
|
std::chrono::duration<double> elapsed_seconds = end - start;
|
|
RequestQueue tempQ;
|
|
tempQ.id = id;
|
|
tempQ.requestType = rqType;
|
|
rQueue.push_back(tempQ);
|
|
|
|
logFile << elapsed_seconds.count() << " s, Request type sent: " << rqType << ", ID: " << id << std::endl;
|
|
}
|
|
|
|
void Logger::logReceivedMessage(std::string repType, unsigned int id) {
|
|
//end = std::chrono::system_clock::now();
|
|
} |