Watch out: having a single global value where the the time is transferred will cause problems with multiple threads. We really need something like the once function that is more efficient for this or some kind of atomic region. Yikes, I really hate multiple threads because of these kinds of bugs.