// Constructor public HashData(_T _data, delegate_convertToString _funcConv = null, HashDataTimings _timings = null) { // Copy m_data = _data; m_funcConv = _funcConv; m_computationTimings = _timings; }
// Retrieves the timings for a certain image and technique private bool getTimingsFor(ImageSourceBinding _binding, TechniqueID _id, out double _loadingTime, out double _computationTime) { // Local variables HashDataTimings timings = null; // Check parameter if (_binding == null || _binding.getComparisonDataFor(_id) == null || _binding.getComparisonDataFor(_id).HashData.getTimings() == null) { _loadingTime = _computationTime = 0.0; return(false); } timings = _binding.getComparisonDataFor(_id).HashData.getTimings(); // Set data _loadingTime = timings.ImageLoadingTimeMS; _computationTime = timings.HashComputationTimeMS; return(true); }