Example #1
0
    bool runCase(Runable &s, CASETYPE &c) {
        T_OUT &expect = c.o1;
        clock_t start, end;
        start = clock();

        T_OUT out = s.run(c);

        end = clock();
        c.time_span = end - start;

        return isSame(out, expect);
    }
Example #2
0
File: tcp.cpp Project: jack833/dk
DWORD WINAPI RunableThread(LPVOID lpParam)
{
    Runable *run = (Runable *)(lpParam);
    run->run();
    return 0;
}