On this page
os.times_result
Prev: os.terminal_size | Up: os | Next: os.uname_result
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org โ os.times_result
Tags: #public #python3 #stdlib #os
Import
import os
from os import times_result
Signature & Overview
os.times_result(iterable=(), /)
times_result: Result from os.times().
Methods & Attributes
times_result.count(self, value, /)โ Return number of occurrences of value.times_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import os
t = os.times()
assert isinstance(t, os.times_result) and t.user >= 0 and t.system >= 0
Gotchas
- Process CPU times: Exposes
.user,.system,.children_user,.children_system, and.elapsed.
REPL Inspect
from os import times_result
help(times_result)
Linked from
Related notes
- tuts/python3/stdlib_module/os/terminal_size Linked here; links to this page; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/uname_result Linked here; links to this page; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/os/abort Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/access Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chdir Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chmod Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chown shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/close shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/cpu_count shared tags: #os, #stdlib