Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#include <ll/i386/pit.h>
2
#include <ll/sys/ll/time.h>
3
 
4
main()
5
{
6
        struct pitspec ps1;
7
        struct timespec ts1;
8
 
9
        ps1.units = 1432809;
10
        ps1.gigas = 10;
11
 
12
        PITSPEC2TIMESPEC(&ps1, &ts1);
13
 
14
        message("%lu %lu\n", PITSPEC2USEC(&ps1), TIMESPEC2USEC(&ts1));
15
        message("%lu %lu\n", ts1.tv_sec, ts1.tv_nsec);
16
        for(;;);
17
}