Debian Codegraph @

examples/time/time_types.ck

raw
1 // 05.ck : time, now, duration
2
3 // time + duration
4 now + 5::second => time later;
5
6 // time loop
7 while( now < later )
8 {
9 // print out the time
10 <<<now>>>;
11 // advance time
12 1::second => now;
13 }
14
15 <<<"success">>>;