Description:codex

Match-id-a8953a2fae193835b06fa3e731a53cba652e10f5
This commit is contained in:
xxxx
2022-08-10 10:20:36 +08:00
parent d1bd2444b3
commit 4fa62540c0
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ namespace OHOS {
namespace DistributedHardware {
namespace DistributedInput {
namespace {
constexpr int32_t MS_ONE_SECOND = 1000;
constexpr int32_t US_ONE_SECOND = 1000 * 1000;
const char *const DESCRIPTOR = "descriptor";
}
@@ -51,7 +51,7 @@ uint64_t GetCurrentTime()
{
struct timeval tv;
gettimeofday(&tv, nullptr);
return tv.tv_sec * MS_ONE_SECOND + tv.tv_usec / MS_ONE_SECOND;
return tv.tv_sec * US_ONE_SECOND + tv.tv_usec;
}
std::string SetAnonyId(const std::string &message)