akaros/tests/usleep.c
<<
>>
Prefs
   1#include <stdio.h>
   2#include <stdlib.h>
   3#include <parlib/parlib.h>
   4
   5int main(int argc, char **argv)
   6{
   7        int sleep_time;
   8
   9        if (argc < 2) {
  10                printf("Usage: %s MICROSEC\n", argv[0]);
  11                exit(-1);
  12        }
  13        sleep_time = atoi(argv[1]);
  14        if (sleep_time < 0)
  15                exit(-1);
  16        sys_block(sleep_time);
  17        return 0;
  18}
  19