sdm: Use monotonic clock in HAL

gettimeofday() function returns wall clock time which can change if the
time is updated using NTP etc. Use clock_gettime() function to get
monotonic clock time to safely and reliably measure elapsed time in
a program.

CRs-Fixed: 2190449
Change-Id: Icc7e470b6427db58837473039d0537748de5b2aa
1 file changed