예제 #1
0
파일: arith.c 프로젝트: chjohnst/ptpd
int check_timestamp_is_fresh(TimeInternal * timeA)
{
	TimeInternal timeB;
	getTime(&timeB);

	return check_timestamp_is_fresh2(timeA, &timeB);
}
예제 #2
0
파일: arith.c 프로젝트: wowczarek/ptpd
int
check_timestamp_is_fresh(const TimeInternal * timeA)
{
	TimeInternal timeB;
	getSystemClock()->getTime(getSystemClock(), &timeB);

	return check_timestamp_is_fresh2(timeA, &timeB);
}