Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. long starttime;
  2. long endtime;
  3.  
  4. //Onbutton {
  5.  
  6. // You might have to convert the time into the timeformat you want to calculate with
  7.  
  8. starttime = buttone.getsubmittedStuffEndTime();
  9. endtime = button.getSubmittedStuffEndTime();
  10.  
  11. long totaltime = Math.abs(starttime, endtime);
  12.  
  13. int amount = 3600/totaltime;
  14.  
  15. System.out.Print("In one hour there will be produced around " + amount + " tiles");
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement