p26001-store-acs-soc-fw-app/video/core/System.cpp
2026-09-28 21:33:04 +08:00

37 lines
818 B
C++

/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "System.h"
#include <Poco/Exception.h>
namespace Video
{
namespace Core
{
/*
*******************************************************************************
* CLASS DEFINE
*******************************************************************************
*/
System* System::_pInstance = nullptr;
System::System()
{
}
System::~System()
{
delete _pInstance;
_pInstance = nullptr;
}
uint64_t System::timestamp()
{
if (!_pInstance)
throw Poco::IllegalStateException("Unregister implement class.");
return _pInstance->getTimestamp();
}
}
}