3
1 100 80
2 100 70
3 110 60
4 140 50
5 140 200
6 230 10
7 235 200
8 240 20
9 240 30
10 240 30

I am inputting the above in a simulator that simulates people in line at a store.

The 3 means three checkouts are open, the first number is simply the number of the customer 1, 2, 3, 4 so on ....

The middle number is the time the customer arrived to the checkout since the simulation started in seconds
so looking at this list two customers arrived 100 seconds into the simulation.

The third number all the way to the right is the time in seconds the customer needs at the checkout.

The point of the program is just to simply give the user the mean, median, and max wait time in seconds

MY QUESTION IS:
How do I simulate time going by in my program without sitting around for all this time, I am totally perplexed.

You could check their time library: Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.