mirror of
https://gitee.com/openharmony/testfwk_developer_test
synced 2024-11-27 01:30:26 +00:00
Signed-off-by: Teacher_Dong <dongwang.wangdong@huawei.com>
Signed-off-by: Teacher_Dong <dongwang.wangdong@huawei.com>
This commit is contained in:
parent
144699660f
commit
7484b17f81
@ -32,8 +32,10 @@ static double TimeDiff(struct timeval *x , struct timeval *y)
|
||||
return 0;
|
||||
}
|
||||
|
||||
double xUs = reinterpret_cast<double>(x->tv_sec * SleepTest::ID_MS_TO_NS_LEVEL) + reinterpret_cast<double>(x->tv_usec);
|
||||
double yUs = reinterpret_cast<double>(y->tv_sec * SleepTest::ID_MS_TO_NS_LEVEL) + reinterpret_cast<double>(y->tv_usec);
|
||||
double xUs = reinterpret_cast<double>(x->tv_sec * SleepTest::ID_MS_TO_NS_LEVEL) +
|
||||
reinterpret_cast<double>(x->tv_usec);
|
||||
double yUs = reinterpret_cast<double>(y->tv_sec * SleepTest::ID_MS_TO_NS_LEVEL) +
|
||||
reinterpret_cast<double>(y->tv_usec);
|
||||
|
||||
return (yUs - xUs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user