Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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()
|
||||
{
|
||||
threadControl.sleep(1000);
|
||||
|
||||
new Range(0,10000).filterBy:(x => x.mod:2 == 0).summarize();
|
||||
}
|
||||
|
||||
public program()
|
||||
{
|
||||
var start := now;
|
||||
|
||||
someProcess();
|
||||
|
||||
var end := now;
|
||||
|
||||
console.printLine("Time elapsed in msec:",(end - start).Milliseconds)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue