Added wait(double sec) to nMutex