|
|
@ -51,9 +51,16 @@ public:
|
|
|
|
~GpioDebugLogger()
|
|
|
|
~GpioDebugLogger()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint64_t ts = (GetMicroTimeStamp() - m_startTime);
|
|
|
|
uint64_t ts = (GetMicroTimeStamp() - m_startTime);
|
|
|
|
|
|
|
|
if (ts > 1000)
|
|
|
|
|
|
|
|
{
|
|
|
|
CreateEmptyFile(m_path + ".leave." + std::to_string(ts));
|
|
|
|
CreateEmptyFile(m_path + ".leave." + std::to_string(ts));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string path = m_path + ".enter";
|
|
|
|
|
|
|
|
std::remove(path.c_str());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
std::string m_path;
|
|
|
|
std::string m_path;
|
|
|
|