change time computation to be compatible with python 2.4
python 2.4 compatibility issues
compatibility with older version of inspect