How to get microseconds of system time from Redhat Linux 4.0
Answers were Sorted based on User's Feedback
Answer / rajeev kumar verma
The systemcall "gettimeofday" can be used to get the time in microseconds. The call takes two arguments.
1- struct timeval
2- struct timezone ( for timezone information). you can have second argument null.
timeval structure has two fields:
tv_sec ( represents time in seconds)
tv_usec ( represents time in microseconds )
the code snapshot is :
////
struct timeval t_time;
gettimeofday(&t_time,NULL);
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / mahesh
what is difference between Big endian and Small Endian ????
| Is This Answer Correct ? | 0 Yes | 1 No |
what happens when we do insmod & rmmod in Linux Device Drivers ?
Explain process management system calls in linux?
what is mean by raid and what are all raids available even in software and hardware?
what is nis server
how to configure http server on red hat linux4.0?
what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?
what are the backup utilites on red hat linux 4.0?
diff b/w spinlock, seamaphores and mutex and where to use it.
what is segmentation fault?
linux system its not booting up its showing groub error what i need to do?
What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?
what is samba, what is configuration file, how it will work?