Back to Clock Service Examples Page
This example will demonstrate how to obtain the current time from a Controlled Clock object. A reference to the ControlledClock is obtained and the current_time() operation invoked on it. The result of invoking current_time() is displayed on the standard output device.
Note: This particular example will not work with a Mission Clock since other operations need to be invoked prior to the current_time() operation on Mission Clocks.
The source file for the Controlled Clock example is:
GenericControlledClockQuery.java
From the command line use:
server -start ClockService
Using the Administration Manager:
Start the Administration Manager, right click on the ClockService node and select Start from the pop-up menu.
run com.prismt.cos.CosClockService.examples.GenericControlledClockQuery