Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
4
Task/System-time/Atari-BASIC/system-time.basic
Normal file
4
Task/System-time/Atari-BASIC/system-time.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
10 REM DETECT NTSC OR PAL SYSTEM
|
||||
20 FPS=60:IF PEEK(53268)=1 THEN FPS=50
|
||||
30 JIFFIES=65536*PEEK(18)+256*PEEK(19)+PEEK(20)
|
||||
40 PRINT JIFFIES/FPS;" SECONDS SINCE LAST RESET"
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
import time
|
||||
print time.ctime()
|
||||
print(time.ctime())
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
import "os" for Process
|
||||
import "./date" for Date
|
||||
import "timer" for Now
|
||||
|
||||
var args = Process.arguments
|
||||
if (args.count != 1) Fiber.abort("Please pass the current time in hh:mm:ss format.")
|
||||
var startTime = Date.parse(args[0], Date.isoTime)
|
||||
for (i in 0..1e8) {} // do something which takes a bit of time
|
||||
var now = startTime.addMillisecs((System.clock * 1000).round)
|
||||
Date.default = Date.isoTime + "|.|ttt"
|
||||
System.print("Time now is %(now)")
|
||||
System.print(Now.time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue