On Nov 23, 2007 7:11 AM, Valery Reznic <[EMAIL PROTECTED]> wrote: > I don't remember where, but some (considerable)time > ago I saw LD_PRELOAD library, which aloow shift and > or multiply time. It was called something like > faketime (not so sure about the name) You can try to > find it > Or re-implement yourself :) >
Interesting, http://www.code-wizards.com/projects/libfaketime/index.html Thanks! > Valery. > Maxim. > --- Maxim Veksler <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > > > I know this sounds a bit funny but I need a script > > or perhaps a method > > to hurry up the kernel internal time pacer so that > > time will go faster > > on my machine. > > > > I'm testing events that are scheduled to be > > executed, say ~every 3h. > > Waiting 3h for each test is lame. I need a time > > machine! > > > > Has anyone written / seen something appropriate ? > > > > To mention that simply testing for time and adding > > "+1"min to it is > > not good because that means I could lose a whole > > minute in case of > > race conditions with other processes (think HH:MM: > > 59.999). Yes, testing > > for date '+%N' and adding to it is also an option > > but that's boring and I > > guess is > > error prone too. Using something tested that someone > > wrote is my > > preferred option. > > > > > > Thanks, > > Maxim. > > > > -- > > Cheers, > > Maxim Veksler > > > > "Free as in Freedom" - Do u GNU ? > > > > > > > ____________________________________________________________________________________ > Get easy, one-click access to your favorites. > Make Yahoo! your homepage. > http://www.yahoo.com/r/hs > -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ? ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]