2 * Author: George V. Neville-Neil
11 start_timing(PyObject
*self
)
19 finish_timing(PyObject
*self
)
27 seconds(PyObject
*self
)
29 return PyInt_FromLong(TIMINGS
);
35 return PyInt_FromLong(TIMINGMS
);
41 return PyInt_FromLong(TIMINGUS
);
45 static PyMethodDef timing_methods
[] = {
46 {"start", (PyCFunction
)start_timing
, METH_NOARGS
},
47 {"finish", (PyCFunction
)finish_timing
, METH_NOARGS
},
48 {"seconds", (PyCFunction
)seconds
, METH_NOARGS
},
49 {"milli", (PyCFunction
)milli
, METH_NOARGS
},
50 {"micro", (PyCFunction
)micro
, METH_NOARGS
},
55 PyMODINIT_FUNC
inittiming(void)
57 (void)Py_InitModule("timing", timing_methods
);