Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!husc6!m2c!umvlsi!pad.ecs.umass.edu!rayaprol From: rayaprol@pad.ecs.umass.edu (Venu S Rayaprolu) Newsgroups: comp.unix.wizards Subject: Successive adjtime calls Keywords: adjtime, timeval, time ... Message-ID: <1131@umvlsi.ecs.umass.edu> Date: 1 Aug 90 18:43:56 GMT Sender: news@umvlsi.ecs.umass.edu Reply-To: rayaprol@umvlsi.ecs.umass.edu Organization: University of Massachusetts at Amherst Lines: 32 Can anyone tell me the behavior of 2 successive adjtime calls? Specifically, if I have #include adjust_clock(...) { struct timeval timev1, timev2; . . . . adjtime(&timev1, (struct timeval *) 0); . . adjtime((struct timeval *) 0, &timev2); . . } I know that the timev2 returns the time that is still to be adjusted when the second call was made. My question is, does first argument zero mean that the adjustment is stopped? Or in general, in 2 succesive calls, does the second adjustment override the first adjustment(whatever remains of it) OR does it just tag on? Thanks in adv. Venu. "Time is nature's way of not letting too many things happen, all at once."