Page 1 of 17 123456789101112 ... LastLast
Results 1 to 25 of 405

Thread: Lkadj

  1. #1
    Senior Member  
    Join Date
    05-27-06
    Location
    was COlorado, now COmmirado
    Posts
    7,772

    Lkadj

    For those of you having interest, I wrote and compiled a little program to show seconds since midnight, decimal time, real time, and elapsed time. It updates every minute.

    Access the program here

    Just tell it you trust me and go ahead and run it.

    I mean, if you can't trust me, whom can you trust?

    It makes use of the variable "timer," which returns the number of seconds since midnight --so if you want to write one in your most very favoritest language, have at it.

    Terry, 230RN
    "Gun control is not about public safety, crime reduction, or 'the children.' Gun control is about power. The people have it, and the government would rather they didn't." (An internet poster, not myself.)

  2. #2
    Senior Member  
    Join Date
    01-14-05
    Location
    Alabama, USA
    Posts
    957
    Just tell it you trust me and go ahead and run it.
    No. But give me the source, and perhaps I will compile it myself and try it.
    "It is difficult to free fools from the chains they revere." - Voltaire
    "Well, the Constitution has not yet been pregnant." - Gore Vidal
    "Freedom is terrifying to dependent personalities and their masters." - Standing Wolf

  3. #3
    Senior Member  
    Join Date
    05-27-06
    Location
    was COlorado, now COmmirado
    Posts
    7,772
    It was written in GW-Basic. An ancient, very quick method of programming. I still use it for quickies, and many of the prgram lines can be xfrd to VB.NET, etc. Compiled with Turbo Basic compiler, also ancient. (I'm also testing my new sig line here.)

    Source Code:
    ----------
    GW-BASIC 3.22
    (C) Copyright Microsoft 1983,1984,1985,1986,1987
    60300 Bytes free
    Ok*
    LOAD"dectime
    Ok*
    LIST
    100 CLS
    200 REM THERE ARE 86400 SECONDS IN A DAY
    300 REM THE VARIABLE TIMER GIVES THE NUMBER OF SECONDS SINCE MIDNIGHT.
    400 REM THE VARIBLE TIME$ GIVES THE SYSTEM CLOCK TIME
    500 TIMEKEEP = TIMER
    600 C = TIMER
    700 T$=TIME$
    800 PRINT "SECONDS SINCE MIDNIGHT ";C
    900 PRINT "DECIMAL TIME = ";C/8640
    1000 PRINT "REAL TIME = " ;T$
    1100 PRINT "ELAPSED TIME = ";(C-TIMEKEEP);" SECONDS"
    1200 PRINT:PRINT:PRINT
    1250 IF (TIMER-C) > 5! THEN GOTO 1300 ELSE 1250
    1300 IF RIGHT$(TIME$,2) ="00" THEN GOTO 600 ELSE 1300
    Ok*


    1LIST 2RUN← 3LOAD" 4SAVE" 5CONT← 6,"LPT1 7TRON← 8TROFF← 9KEY 0SCREEN
    "Gun control is not about public safety, crime reduction, or 'the children.' Gun control is about power. The people have it, and the government would rather they didn't." (An internet poster, not myself.)

  4. #4
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  5. #5
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  6. #6
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  7. #7
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  8. #8
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  9. #9
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  10. #10
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  11. #11
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  12. #12
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  13. #13
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  14. #14
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  15. #15
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  16. #16
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  17. #17
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  18. #18
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  19. #19
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  20. #20
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  21. #21
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  22. #22
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  23. #23
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  24. #24
    Member  
    Join Date
    05-22-21
    Posts
    213,634

  25. #25
    Member  
    Join Date
    05-22-21
    Posts
    213,634

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •