Displaying 4 results from an estimated 4 matches for "duration_cast".
2017 Jan 09
5
The most efficient way to implement an integer based power function pow in LLVM
Hi,
I want an efficient way to implement function pow in LLVM instead of
invoking pow() math built-in. For algorithm part, I am clear for the logic.
But I am not quite sure for which parts of LLVM should I replace built-in
pow with another efficient pow implementation. Any comments and feedback
are appreciated. Thanks!
--
Wei Ding
-------------- next part --------------
An HTML attachment was
2018 Nov 30
1
Xapian Benchmark results
...join();
}
infs.close();
Xapian::Database final_db;
for(const Xapian::WritableDatabase &d : dbs)
{
final_db.add_database(d);
}
Xapian::Enquire enquire(final_db);
Xapian::QueryParser parser;
end = high_resolution_clock::now();
auto diff1 = duration_cast<milliseconds>(end - start).count();
cout << "Indexing time: " << diff1 << "ms" << endl;
// search
parser.set_stemmer(stemmer);
parser.set_database(final_db);
parser.set_stemming_strategy(Xapian::QueryParser::STEM_SOME);
start = high_...
2016 Oct 12
2
RFC: General purpose type-safe formatting library
...t;< format_string("Start: {0}, End: {1}, Elapsed: {2:ms}", start, end,
start-end);
Or you could write:
os << "Start: " << format_time_point(start) << ", End: "
<< format_time_point(end) << ", Elapsed: " <<
std::chrono::duration_cast<std::chrono::millis>(start-end).count();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161012/01ea6532/attachment.html>
2016 Oct 12
15
RFC: General purpose type-safe formatting library
A while back llvm::format() was introduced that made it possible to combine
printf-style formatting with llvm streams. However, this still comes with
all the risks and pitfalls of printf. Everyone is no-doubt familiar with
these problems, but here are just a few anyway:
1. *Not type-safe.* Not all compilers warn when you mess up the format
specifier. And when you're writing your own