[omniORB] changing system clock

Duncan Grisby duncan at grisby.org
Fri May 19 13:16:01 BST 2006


On Thursday 18 May, "Geoffrey Hanson" wrote:

> Another way to solve this is to, instead of having get_time() return
> the wall clock, you can have it return the time since the system
> booted. POSIX has some routines to do this. I'm not sure about
> non-POSIX systems. This makes you immune from system clock changes.

What system call does that?

> The only cases where using this method would be invalid would be where
> you actually need the wall clock time. For example, if you're printing
> out a log with the time. However, all callers of get_time() that I
> could see were simply using the time for timing purposes.

omniORB 4.1 has an option to include the time in its logging, so that
requires the real time.

When you specify a timeout for a call, you can specify an absolute
deadline, which also requires the real time.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list