nanoperiod function

Period type with nanosecond precision