what about
float time_left = (msg-deadline * 1.f - mach_absolute_time()) / NSEC_PER_SEC; // seconds
Topic:
App & System Services
SubTopic:
Drivers
Tags: