Files
oemcrypto/util/include/clock.h
2025-05-22 16:33:29 -07:00

28 lines
723 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 - Platform independent interface for a time library
//
#ifndef WVCDM_UTIL_CLOCK_H_
#define WVCDM_UTIL_CLOCK_H_
#include <stdint.h>
#include "wv_timestamp.h"
namespace wvutil {
// Provides time related information. The implementation is platform dependent.
class Clock {
public:
Clock() = default;
virtual ~Clock() = default;
// Provides the number of seconds since an epoch - 01/01/1970 00:00 UTC
virtual int64_t GetCurrentTime();
virtual Timestamp GetCurrentTimestamp();
};
} // namespace wvutil
#endif // WVCDM_UTIL_CLOCK_H_