[ Merge of http://go/wvgerrit/108084 ] The Widevine License Agreement has been renamed to use inclusive language. This covers files in the android directory. Bug: 168562298 Test: verified compilation (comment only change) Change-Id: I0f9e6445e0168ebe85425baeb81371e182e5a39c
21 lines
453 B
C++
21 lines
453 B
C++
// 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 <sys/time.h>
|
|
|
|
namespace wvcdm {
|
|
|
|
int64_t Clock::GetCurrentTime() {
|
|
struct timeval tv;
|
|
tv.tv_sec = tv.tv_usec = 0;
|
|
gettimeofday(&tv, nullptr);
|
|
return tv.tv_sec;
|
|
}
|
|
|
|
} // namespace wvcdm
|