Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get microseconds of system time from Redhat Linux 4.0

Answers were Sorted based on User's Feedback



How to get microseconds of system time from Redhat Linux 4.0..

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

How to get microseconds of system time from Redhat Linux 4.0..

Answer / mahesh

what is difference between Big endian and Small Endian ????

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Linux System Calls Interview Questions

what happens when we do insmod & rmmod in Linux Device Drivers ?

2 Answers  


what is mean by raid and what are all raids available even in software and hardware?

5 Answers   Satyam,


what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


Explain process management system calls in linux?

0 Answers  


why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,


if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?

4 Answers   NetApp,


linux system its not booting up its showing groub error what i need to do?

4 Answers   Wipro,


What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


how to create a ftp user on redhat linux 4.0?

6 Answers   Accenture,


what is nis server

13 Answers  


what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,


what is segmentation fault?

11 Answers   AdTel, NetApp,


Categories