On this page
  1. time.process_time_ns
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

time.process_time_ns

Prev: time.process_time | Up: time | Next: time.sleep
Rel: time.asctime, time.clock_getres, time.clock_gettime, time.clock_gettime_ns
Ref: docs.python.org — time.process_time_ns
Tags: #public #python3 #stdlib #time


Import

import time
from time import process_time_ns

Signature & Overview

time.process_time_ns()

Process time for profiling as nanoseconds: sum of the kernel and user-space CPU time.

Usage

import time

c0 = time.process_time_ns()
assert isinstance(time.process_time_ns() - c0, int)

Gotchas

REPL Inspect

from time import process_time_ns
help(process_time_ns)

Linked from

Related notes