Systems, methods, and devices are provided for time measurement. One
embodiment includes a method for measuring time on multiprocessor
systems. The method includes allocating a memory space to a thread to be
used to communicate with an operating system and saving a context switch
count, an offset, and a scale factor, received from the operating system,
in the memory space.