use time_ns for duration-based timing. fixes #2464
document some more functions
more function doc, and update helpdb