aboutsummaryrefslogtreecommitdiff
path: root/src/utiltime.cpp
AgeCommit message (Collapse)Author
2017-08-07scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal ↵practicalswift
instead of the macro NULL -BEGIN VERIFY SCRIPT- sed -i 's/\<NULL\>/nullptr/g' src/*.cpp src/*.h src/*/*.cpp src/*/*.h src/qt/*/*.cpp src/qt/*/*.h src/wallet/*/*.cpp src/wallet/*/*.h src/support/allocators/*.h sed -i 's/Prefer nullptr, otherwise SAFECOOKIE./Prefer NULL, otherwise SAFECOOKIE./g' src/torcontrol.cpp sed -i 's/tor: Using nullptr authentication/tor: Using NULL authentication/g' src/torcontrol.cpp sed -i 's/METHODS=nullptr/METHODS=NULL/g' src/test/torcontrol_tests.cpp src/torcontrol.cpp sed -i 's/nullptr certificates/NULL certificates/g' src/qt/paymentserver.cpp sed -i 's/"nullptr"/"NULL"/g' src/torcontrol.cpp src/test/torcontrol_tests.cpp -END VERIFY SCRIPT-
2017-05-10[logging] log system time and mock timeJohn Newbery
2017-04-20fix tsan: utiltime race on nMockTimePieter Wuille
2017-03-08Refactor: Remove using namespace <xxx> from util*Karl-Johan Alm
2017-01-27[trivial] Fix typos in commentspracticalswift
2017-01-25net: Consistently use GetTimeMicros() for inactivity checksSuhas Daftuar
The use of mocktime in test logic means that comparisons between GetTime() and GetTimeMicros()/1000000 are unreliable since the former can use mocktime values while the latter always gets the system clock; this changes the networking code's inactivity checks to consistently use the system clock for inactivity comparisons. Also remove some hacks from setmocktime() that are no longer needed, now that we're using the system clock for nLastSend and nLastRecv.
2016-12-31Increment MIT Licence copyright header year on files modified in 2016isle2983
Edited via: $ contrib/devtools/copyright_header.py update .
2016-11-27Fix race when accessing std::locale::classic()Matt Corallo
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78552
2016-04-03[doc] Fix doxygen comments for membersMarcoFalke
2015-12-13Bump copyright headers to 2015MarcoFalke
2015-11-24Assert now > 0 in GetTime GetTimeMillis GetTimeMicrosPatick Strateman
Previously all of these functions could return negative values (for different readons). Large portions of the codebase currently assume that these functions return positive values.
2015-10-26Add option for microsecond precision in debug.logSuhas Daftuar
2015-04-30Trivial: useless cast (ptime)(I'm ptime)svost
2014-12-19Added "Core" to copyright headerssandakersmann
Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-11-17Update comments in util to be doxygen compatibleMichael Ford
2014-08-26Split up util.cpp/hWladimir J. van der Laan
Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.