// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary // source code may only be used and distributed under the Widevine License // Agreement. // // Clock - implemented using the standard linux time library #include "clock.h" #include namespace wvutil { int64_t Clock::GetCurrentTime() { struct timeval tv; tv.tv_sec = tv.tv_usec = 0; gettimeofday(&tv, nullptr); return tv.tv_sec; } } // namespace wvutil