os.c: Added functions that are used to measure time interrupts are disabled