Fixed dur_nsec to int64_t and not to double as I was erroneously doing