mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 17:06:07 +00:00
14 lines
328 B
Plaintext
14 lines
328 B
Plaintext
f() = do
|
|
term.log("Hello, world!")
|
|
term.time("threaded function")
|
|
for (i from 0 to 1000000) do
|
|
if (i % 100000 == 0) do
|
|
term.log("i = " + i)
|
|
term.timeEnd("threaded function")
|
|
term.log("Goodbye, world!")
|
|
|
|
t = thread(f)
|
|
t.start()
|
|
term.time("main thread")
|
|
t.join()
|
|
term.timeEnd("main thread") |