vinodstanur
Advanced Member level 3
- Joined
- Oct 31, 2009
- Messages
- 751
- Helped
- 114
- Reputation
- 234
- Reaction score
- 114
- Trophy points
- 1,333
- Location
- Kerala (INDIA)
- Activity points
- 7,054
while(1) {
outb(0xff, 0x378);
outb(0x00, 0x378);
}
outb(0xFF, 0x378);
nanosleep(&ts, NULL);
outb(0x00, 0x378);
gettimeofday( &tp_start, &tzp );
for(i=0; i<10000; i++){
outb(0xff, 0x378);
outb(0x00, 0x378);
}
gettimeofday( &tp_stop, &tzp );
Why would nanosleep() change anything?
Its strange thing it will shroten seconds. PC think that is one second schorter. Its strange but works. Just google
and see what other people do.
while(1) {
outb(0x00, 0x378);
outb(0x255,0x378);
}
Did you tried it?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?