Annotation of researchv10no/cmd/view2d/term/clock.c, revision 1.1.1.1

1.1       root        1: #include       <CC/jerq.h>
                      2: #include       "frame.pri"
                      3: #include       "clock.pri"
                      4: 
                      5: Clock.Clock()
                      6: {
                      7: }
                      8: 
                      9: void
                     10: Clock.set()
                     11: {
                     12:        int step;
                     13: 
                     14:        step = m->period*60;
                     15:        if(m->maxframe > 1) step /= m->maxframe-1;
                     16:        next = realtime() + speed->val;
                     17: }
                     18: 
                     19: void
                     20: Clock.synch()
                     21: {
                     22:        for(; realtime() < next; sleep(1))
                     23:                if((own()&MOUSE) && button123()) break;
                     24: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.