June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
23
Task/Time-a-function/Elena/time-a-function.elena
Normal file
23
Task/Time-a-function/Elena/time-a-function.elena
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import system'calendar.
|
||||
import system'routines.
|
||||
import system'threading.
|
||||
import system'math.
|
||||
import extensions.
|
||||
|
||||
someProcess =
|
||||
[
|
||||
thread sleep(1000).
|
||||
|
||||
Range new(0,10000); filterBy(:x)(x mod:2 == 0); summarize.
|
||||
].
|
||||
|
||||
program =
|
||||
[
|
||||
var start := now.
|
||||
|
||||
someProcess eval.
|
||||
|
||||
var end := now.
|
||||
|
||||
console printLine("Time elapsed in msec:",(end - start) milliseconds).
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue