TimeCheck : class used for testing code performance