Search:

Type: Posts; User: jtk

Search: Search took 0.01 seconds.

  1. For clarification, it seems like inserting...

    For clarification, it seems like inserting nanosleep there inflicts on the system clock to make it run faster. So the computer thinks that the second is shorter..
  2. It does not change anything if I replace usleep...

    It does not change anything if I replace usleep with nanosleep.
  3. I don't think the problem is in usleep. My...

    I don't think the problem is in usleep. My frequency meter detects the pulse from the rising edge, i.e. when I do outb(0xff, 0x378);. usleep is there just to keep the output level up for a while to...
  4. nanosleep() -system call does some confusing things

    I made a program that sends pulse-per-second to serial port. I measured the frequency of the pulses and noticed some surprising effects caused by involving a nanosleep() system call to my program....
  5. I think it is sufficient that the microsecond...

    I think it is sufficient that the microsecond resolution is available "most of time", not all the time. So, is nanosleep capable to do that and not affected by system clock (or NTP)? If not, what...
  6. Thank you for help. So, I'm looking for a delay...

    Thank you for help. So, I'm looking for a delay function that is not based on the system clock. In my program, I am using the network time protocol which manipulates the system clock frequency, but I...
  7. OK, thank you Mats! I'll try to check it out....

    OK, thank you Mats! I'll try to check it out. Meanwhile, you can also help me telling which oscillator is used by nanosleep. Does it use processor cycle counter or software clock to count ticks?
  8. Where to find source code for functions introduced in time.h?

    I'm trying to figure out how nanosleep() function is implemented for Linux. It is declared in time.h header located at /usr/include/ -directory. But there is only the function declaration part like...
Results 1 to 8 of 8