1 // Copyright (C) 2019-2020 Internet Systems Consortium, Inc. ("ISC") 2 // 3 // This Source Code Form is subject to the terms of the Mozilla Public 4 // License, v. 2.0. If a copy of the MPL was not distributed with this 5 // file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 #include <config.h> 8 9 #include <cc/base_stamped_element.h> 10 11 namespace isc { 12 namespace data { 13 BaseStampedElement()14BaseStampedElement::BaseStampedElement() 15 /// @todo Change it to microsec_clock once we transition to subsecond 16 /// precision. 17 : id_(0), timestamp_(boost::posix_time::second_clock::local_time()) { 18 } 19 20 void updateModificationTime()21BaseStampedElement::updateModificationTime() { 22 /// @todo Change it to microsec_clock once we transition to subsecond 23 /// precision. 24 setModificationTime(boost::posix_time::second_clock::local_time()); 25 } 26 27 } // end of namespace isc::data 28 } // end of namespace isc 29