Increasing speed over time

Hi all, I have a game and I want to increase the speed of the ground overtime. I have the following code but I’m not sure how to specify how long to take before it increases it’s speed?

using UnityEngine;

public class Ground : MonoBehaviour
{
    public Material material;
    public float speedMultiplier = 0.5f;
    public float xVel = 0.1f;
    Vector2 offset;
    void Start()
    {
        material = GetComponent<Renderer>().material;
    }

    // Update is called once per frame
    void Update()
    {
        offset = new Vector2(xVel, 0);
        material.mainTextureOffset += offset * Time.deltaTime * speedMultiplier;
    }
}

I think this thread may be of use…

Thanks for the reply, but what i’m making move faster overtime is the background. the character is just running on the spot, and I set the background on repeat. I assume the thread above is used for making an object gradually increase speed?