OpenWiki

Speed Test

Edit this page (last edited July 21, 2005)
Palm Notes | Recent Changes | Title Index | User Preferences | Random Page | Help

It's the source of Speed Test from Palm Internals utility.

void MakeSpeedTest(char *p){
        int i;
        UInt32 t0, t1;
        UInt32 s0, s1;

        // clear event queue
        while(EvtEventAvail()){
                EvtGetEvent(&e, 0);
        }
        t0 = TimGetTicks();
        s0 = TimGetSeconds();
        for(i = 0; i < 10000; ++i){
                EvtEnqueueKey(vchrBacklight, 0, commandKeyMask);
                EvtGetEvent(&e, 0);
        }
        t1 = TimGetTicks();
        s1 = TimGetSeconds();
        StrPrintF(p, "Time in tics %ld, time in secs %ld\n", t1 - t0, s1 - s0);
}

Palm Notes | Recent Changes | Title Index | User Preferences | Random Page | Help
Edit this page
Print this page | View XML
Find page by browsing, searching or an index
Edited July 21, 2005 (diff)
Valid XHTML 1.0!Valid CSS!