From: Eric B. <EBi...@sa...> - 2002-02-22 00:51:39
|
I want to measure CPU time within my Jython code. With CPython I'd typically use os.times(). I don't believe os.times() is supported within Jython [correct me if I'm wrong]. My google searches have only yielded information about using java.lang.System.currentTimeMillis() as a timing mechanism within Jython, which provides wall clock time, not CPU time. Is there an equivalent call to os.times() from Jython? If not, what approaches have people used to measure CPU time within Jython? - Eric Bieschke |