Fix abc::perf::stopwatch::get_duration_ns() time unit conversion

1 s == 1e9 ns, not 1e6. Also improve casts.