Jump to content

Paint Calculations


Recommended Posts

Posted

You need to show us all the variables in your calculations, but personally I would do this instead of how you are calculating time ran.

		long timeRan = System.currentTimeMillis() - startTime;

so this way when you're calculating profit/hr you don't have to have long unnecessary code. You can just do something along the lines of 

		int profitPerHr = (int) (profit * 3600000d / timeRan);
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...