hi all,
  is it possible to write a user space code to calculate the context switch time of a process ? I mean , how can the user space code know about the working of the scheduler?
Is there any system call API to interact with scheduler or something other to interact with , regarding  this problem?

--
........................
MOHIT VERMA