☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
basic
/
tick2.ck
☽
☼
examples/basic/tick2.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// tick tock
2
3
// wait until the start of the next second
4
second - (now % second) => now;
5
6
// infinite time loop
7
while( true )
8
{
9
// print now in seconds
10
<<< "tick:", (now / second) $ int, "seconds" >>>;
11
1::second => now;
12
}