0
Files
src/rlz/lib/time_util_base.cc
Peter Kasting 9d5350b996 Better usage of conversion functions to/from Unix epoch: rlz
Bug: none
Change-Id: I5f2b55cb3bd5a822c029169414f26fb185acd2c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4974871
Reviewed-by: Roger Tawa <rogerta@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Roger Tawa <rogerta@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1214821}
2023-10-25 13:50:42 +00:00

16 lines
364 B
C++

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "rlz/lib/time_util.h"
#include "base/time/time.h"
namespace rlz_lib {
int64_t GetSystemTimeAsInt64() {
return (base::Time::Now() - base::Time::UnixEpoch()).InMicroseconds() * 10;
}
} // namespace rlz_lib