本文整理汇总了C++中Stamp::Get方法的典型用法代码示例。如果您正苦于以下问题:C++ Stamp::Get方法的具体用法?C++ Stamp::Get怎么用?C++ Stamp::Get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stamp
的用法示例。
在下文中一共展示了Stamp::Get方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Dbg
~Statistic()
{
const Debug::Stream Dbg("Core::RawScaner::Statistic");
const Stamp spent = Timer.Elapsed();
Dbg("Total processed: %1%", TotalData);
Dbg("Time spent: %1%", Time::Duration<Stamp::ValueType, Stamp>(1, spent).ToString());
const uint64_t useful = ArchivedData + ModulesData;
Dbg("Useful detected: %1% (%2% archived + %3% modules)", useful, ArchivedData, ModulesData);
Dbg("Coverage: %1%%%", useful * 100 / TotalData);
Dbg("Speed: %1% b/s", spent.Get() ? (TotalData * Stamp::PER_SECOND / spent.Get()) : TotalData);
StatisticBuilder<7> builder;
builder.Add(MakeStatLine(), 0);
StatItem total;
total.Name = "Total";
for (DetectMap::const_iterator it = Detection.begin(), lim = Detection.end(); it != lim; ++it)
{
builder.Add(MakeStatLine(it->second), 1 + it->second.Index);
total += it->second;
}
builder.Add(MakeStatLine(total), 1 + Detection.size());
Dbg(builder.Get().c_str());
}