[comp.sys.amiga.multimedia] Timer on Amiga Vision

nguyent@balboa.eng.uci.edu (Thien Nguyen) (04/29/91)

Does anybody know how I can have a digital clock display on screens in 
Amiga Vision?  I would like the clock to be real time!  Thank you!!!

cathy@cbmvax.commodore.com (Catherine Godfrey - CATS) (04/29/91)

In article <281B4143.1504@orion.oac.uci.edu> nguyent@balboa.eng.uci.edu (Thien Nguyen) writes:
>
>Does anybody know how I can have a digital clock display on screens in 
>Amiga Vision?  I would like the clock to be real time!  Thank you!!!

There is no automatic "digital clock" function in AmigaVision that places 
the time on the screen for you.  You must set a variable equal to the system 
time and then display that variable.  This variable must be updated whenever 
you need the display refreshed.

The following is an example of how to do this in AmigaVision:

MODULE Icon
    VAR Icon       - Insert TIME = clock()
    GFX Icon       - in the Object Editor, create a Text/Var object.
                     In the Var field, place your variable, TIME.
    LOOP Icon      - Set to endless loop
         VAR Icon  - Insert TIME = clock()

When you PRESENT this small flow, you will see the results of the clock() 
function displayed on the screen.  If you set Double Buffer ON (in the 
Defaults menu), the screen will not flicker.

Cathy
-- 
              ============================================
              Cathy Godfrey   {rutgers,uunet}!cbmvax!cathy
              Authoring System Support Specialist        
              Commodore Applications and Technical Support 
              ============================================