Back to Basic Time Service Examples Page Back

Basic Time Service Example

Contents

Introduction

This example makes use of the Time Service to determine the current time and to wait for a time interval. It illustrates the use of several Time Service operations.

The objects defined in the Time Service are UTO objects (which represent a moment in time), TIO objects (which represent a time interval) and the time server itself, which is used to create UTOs and TIOs.

From this example, you will learn how to:

Directory Contents

How To Run This Example

To run the example, first make sure that the OpenFusion Time Service is running on your network. Then run the TimeExample class using the command:

run com.prismt.cos.CosTime.examples.Time.TimeExample

PrismTech TOP
Top