Update library.cpp

Remember to delete actualizeTimeCounter()