Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_multiprocessing.TimingWrapper Class Reference
Inheritance diagram for test.test_multiprocessing.TimingWrapper:
Inheritance graph
Collaboration diagram for test.test_multiprocessing.TimingWrapper:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 89 of file

Constructor & Destructor Documentation

Definition at line 91 of file

00092     def __init__(self, func):
00093         self.func = func
00094         self.elapsed = None

Here is the caller graph for this function:

Member Function Documentation

def test.test_multiprocessing.TimingWrapper.__call__ (   self,

Definition at line 95 of file

00096     def __call__(self, *args, **kwds):
00097         t = time.time()
00098         try:
00099             return self.func(*args, **kwds)
00100         finally:
00101             self.elapsed = time.time() - t
00103 #
00104 # Base class for test cases
00105 #

Member Data Documentation

Definition at line 93 of file

Definition at line 92 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

The documentation for this class was generated from the following file: