diff options
author | lloyd <[email protected]> | 2009-12-01 13:28:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-01 13:28:16 +0000 |
commit | fe0276ee115bb367810ac2e06833fed297eb1715 (patch) | |
tree | 2adf34a771c5dc460f559deb33afd29501fea802 /checks/cvc_tests.cpp | |
parent | 4aec044fc21526e1c9185b384f7e984b7f8622c7 (diff) |
Remove system_time(), replace entirely with std::chrono.
Only remaining use of time.h/ctime is to convert from a time point to
a calendar value, which still requires C's gmtime. Hide it entirely in
time.cpp and return a calendar_point struct instead of a std::tm.
Diffstat (limited to 'checks/cvc_tests.cpp')
-rw-r--r-- | checks/cvc_tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/checks/cvc_tests.cpp b/checks/cvc_tests.cpp index 4b2ffa9a6..7904a2700 100644 --- a/checks/cvc_tests.cpp +++ b/checks/cvc_tests.cpp @@ -350,8 +350,7 @@ void test_eac_time(RandomNumberGenerator&) { std::cout << "." << std::flush; - const u64bit current_time = system_time(); - EAC_Time time(current_time); + EAC_Time time(std::chrono::system_clock::now()); // std::cout << "time as std::string = " << time.as_string() << std::endl; EAC_Time sooner("", ASN1_Tag(99)); //X509_Time sooner("", ASN1_Tag(99)); |