#include <cstdlib>
#include <sstream>
#include <iomanip>
+#include <ctime>
// INTERNAL INCLUDES
#include <dali/public-api/common/constants.h>
namespace Dali
{
+#ifdef DEBUG_ENABLED
+
+// Fake globals for gdb typedefs
+Dali::DebugPropertyValueArray gValueArray;
+Dali::DebugPropertyValueMap gValueMap;
+
+#endif
+
+
namespace // unnamed namespace
{
+const uint64_t NANOSECONDS_PER_SECOND = 1e+9;
+
/**
* Generic function to print out any 2-Dimensional array
* @param[in] data pointer to the source data stored as float[rows][cols]
return Array2DToString(m.AsFloat(), 4, 4, precision, indent);
}
+void GetNanoseconds( uint64_t& timeInNanoseconds )
+{
+ timespec timeSpec;
+ clock_gettime( CLOCK_MONOTONIC, &timeSpec );
+
+ // Convert all values to uint64_t to match our return type
+ timeInNanoseconds = ( static_cast< uint64_t >( timeSpec.tv_sec ) * NANOSECONDS_PER_SECOND ) + static_cast< uint64_t >( timeSpec.tv_nsec );
+}
+
} // namespace Log
} // namespace Integration