コード例 #1
0
std::string QmitkMemoryUsageIndicatorView::GetMemoryDescription(size_t processSize, float percentage)
{
  std::ostringstream str;
  str.imbue(std::locale::classic());
  str << FormatMemorySize(processSize) << " (" << FormatPercentage(percentage) << ")";
  return str.str();
}
コード例 #2
0
std::string QmitkDiffusionDicomImport::GetMemoryDescription( size_t processSize, float percentage )
{
  std::ostringstream str;
  str << FormatMemorySize(processSize) << " (" << FormatPercentage( percentage ) <<")" ;
  return str.str();
}