Results 1 to 3 of 3

Thread: Lkadj

  1. #1
    Senior Member  
    Join Date
    05-27-06
    Posts
    7,775

    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
    Posts
    7,775
    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.)

Posting Permissions

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