jeudi 2 juillet 2015

What's the best time library in C++11?

I'm developping c++11 project in linux. And now I have some requirements for time library.

I want to use time for ...

  • time stamp for access logs
  • compare time by second between last access and current access
  • human friendly logs, like "2014/01/3/18:32:32"
  • easy to convert, utc <-> epoc

Recently I found std::chrono and its comparing functions are really useful. On the other hand, I know some legacy libraries like time.h. In my case, what's the best time library? I want to choose the best time library.

Aucun commentaire:

Enregistrer un commentaire