37 lines
818 B
C++
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();
|
|
}
|
|
}
|
|
}
|