User Tools

Site Tools


cdc:nos2.source:nam5871:ns_slt

NS$SLT

Table Of Contents

  • [00005] PROC NS$SLT
  • [00007] NS$SLT - START LOCAL TIMER.
  • [00011] START LOCAL TIMER.
  • [00033] PROC RTIME

Source Code

NS$SLT.txt
  1. *DECK NS$SLT
  2. USETEXT NAT$NS
  3. USETEXT DEF$NS
  4.  
  5. PROC NS$SLT; # START RESPONSE TIMER #
  6.  
  7. # TITLE NS$SLT - START LOCAL TIMER. #
  8.  
  9. BEGIN # NS$SLT #
  10. #
  11. ** NS$SLT - START LOCAL TIMER.
  12. *
  13. * J.C. LEE 1981
  14. *
  15. * THIS ROUTINE STARTS THE LOCAL TIMER.
  16. *
  17. * PROC NS$SLT
  18. *
  19. * ENTRY:
  20. * NONE.
  21. *
  22. * EXIT:
  23. * NONE.
  24. *
  25. * METHOD:
  26. * GET REAL TIME CLOCK.
  27. * SET LOCAL TIME IN NAT TO CURRENT TIME + RESPONSE TIME.
  28. *
  29. #
  30.  
  31. XREF
  32. BEGIN
  33. PROC RTIME; # GET REAL TIME CLOCK #
  34. END
  35.  
  36. ARRAY STAT [0:0] S(1);
  37. BEGIN # PARAMETER WORD FOR RTIME CALL #
  38. ITEM STATWORD U(00,00,60); # REAL TIME CLOCK READING #
  39. ITEM RSECS U(00,00,24); # SECONDS SINCE DEADSTART #
  40. ITEM RMSECS U(00,24,36); # MILLISECONDS SINCE DEADSTART #
  41. END
  42.  
  43. CONTROL EJECT;
  44. RTIME(STAT); # GET REAL TIME CLOCK #
  45. NAT$LTIMER[0] = RSECS[0] + RTIMER; # START RESPONSE TIMER #
  46.  
  47. RETURN;
  48. END # NS$SLT #
  49. TERM
cdc/nos2.source/nam5871/ns_slt.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator