commit | 837b37c4ce44a1c236e1657a6de80b064af98610 | [log] [tgz] |
---|---|---|
author | Qi Wang <interwq@gwu.edu> | Mon Dec 20 15:04:12 2021 -0800 |
committer | Qi Wang <interwq@gmail.com> | Tue Dec 21 23:37:22 2021 -0800 |
tree | 1d230021a35d680761e7b6f5fd3b195225a4e05f | |
parent | 310af725b0037870f70bf6b94426249f69ca4441 [diff] |
Fix the time-since computation in HPA. nstime module guarantees monotonic clock update within a single nstime_t. This means, if two separate nstime_t variables are read and updated separately, nstime_subtract between them may result in underflow. Fixed by switching to the time since utility provided by nstime.