mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-20 21:41:02 -04:00
Description:reviewbot
Match-id-c5bb6f6e6d3b7d1b477eb9a68e4934ea711ba0c4
This commit is contained in:
@@ -33,7 +33,6 @@ namespace OHOS {
|
||||
namespace DistributedHardware {
|
||||
namespace DistributedInput {
|
||||
namespace {
|
||||
constexpr int32_t US_ONE_SECOND = 1000 * 1000;
|
||||
const char *const DESCRIPTOR = "descriptor";
|
||||
}
|
||||
|
||||
@@ -64,9 +63,10 @@ std::string GetLocalNetworkId()
|
||||
|
||||
uint64_t GetCurrentTime()
|
||||
{
|
||||
constexpr int32_t usOneSecond = 1000 * 1000;
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, nullptr);
|
||||
return tv.tv_sec * US_ONE_SECOND + tv.tv_usec;
|
||||
return tv.tv_sec * usOneSecond + tv.tv_usec;
|
||||
}
|
||||
|
||||
std::string SetAnonyId(const std::string &message)
|
||||
|
||||
Reference in New Issue
Block a user