MCPcopy Create free account

hub / github.com/Cairnarvon/uptime / functions

Functions29 in github.com/Cairnarvon/uptime

↓ 2 callersFunction_calc_uptime
src/_posix.c:19
↓ 2 callersFunctionuptime
Returns uptime in seconds if even remotely possible, or None if not.
src/__init__.py:325
↓ 1 callersFunction_boottime_linux
A way to figure out the boot time directly on Linux.
src/__init__.py:97
↓ 1 callersFunction_uptime_amiga
Returns uptime in seconds or None, on AmigaOS.
src/__init__.py:113
↓ 1 callersFunction_uptime_beos
Returns uptime in seconds on None, on BeOS/Haiku.
src/__init__.py:122
↓ 1 callersFunction_uptime_bsd
Returns uptime in seconds or None, on BSD (including OS X).
src/__init__.py:135
↓ 1 callersFunction_uptime_linux
Returns uptime in seconds or None, on Linux.
src/__init__.py:56
↓ 1 callersFunction_uptime_mac
Returns uptime in seconds or None, on Mac OS.
src/__init__.py:176
↓ 1 callersFunction_uptime_osx
src/_posix.c:39
↓ 1 callersFunction_uptime_plan9
Returns uptime in seconds or None, on Plan 9.
src/__init__.py:198
↓ 1 callersFunction_uptime_posix
src/_posix.c:65
↓ 1 callersFunction_uptime_riscos
Returns uptime in seconds or None, on RISC OS.
src/__init__.py:216
↓ 1 callersFunction_uptime_solaris
Returns uptime in seconds or None, on Solaris.
src/__init__.py:227
↓ 1 callersFunction_uptime_syllable
Returns uptime in seconds or None, on Syllable.
src/__init__.py:292
↓ 1 callersFunction_uptime_windows
Returns uptime in seconds or None, on Windows. Warning: may return incorrect answers after 49.7 days on versions older than Vista.
src/__init__.py:301
↓ 1 callersMethodbasic_test
Calls a given function and checks if it returns something of a type in the sequence rettypes.
tests/uptime_tests.py:32
↓ 1 callersFunctionboottime
Returns boot time if remotely possible, or None if not.
src/__init__.py:351
↓ 1 callersMethodrun
(self)
setup.py:12
↓ 1 callersFunctionrun_suite
unittest is basically a disaster, so let's do this ourselves.
tests/uptime_tests.py:100
FunctionPyInit__posix
src/_posix.c:108
Method__getattr__
(self, name)
tests/uptime_tests.py:40
Function_uptime_minix
Returns uptime in seconds or None, on MINIX.
src/__init__.py:188
Methodbuild_extension
(self, ext)
setup.py:18
Functioninit_posix
src/_posix.c:116
MethodsetUp
(self)
tests/uptime_tests.py:68
MethodsetUpClass
(cls)
tests/uptime_tests.py:62
MethodtearDown
__boottime affects how boottime() and its helpers work, and it may be set as a side-effect by any function. To be on the safe side, j
tests/uptime_tests.py:24
Methodtest_broken_datetime
datetime was introduced in Python 2.3, and though we officially only support Python 2.5+ (because of ctypes), there are some platform
tests/uptime_tests.py:85
Methodtest_equality_guarantee
If uptime.uptime and uptime.boottime are the only functions called, it is guaranteed that the uptime subtracted from the current time
tests/uptime_tests.py:71