(This is a merge of http://go/wvgerrit/13400 from the Widevine CDM repository.) Replace "}; // namespace" with "} // namespace": ag -l --ignore-dir third_party "}; //" | \ while read f; do sed -r -i 's/\}; \/\//} \/\//' $f ; done Replace "// unnamed namespace" with "// namespace": ag -l --ignore-dir third_party "unnamed namespace" | \ while read f; do sed -r -i 's/unnamed namespace/namespace/' $f ; done Change-Id: I50ece9a127ce669f15cd532dfae1dd741338a075
19 lines
335 B
C++
19 lines
335 B
C++
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
// 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, NULL);
|
|
return tv.tv_sec;
|
|
}
|
|
|
|
} // namespace wvcdm
|