Search:

Type: Posts; User: Cornix

Search: Search took 0.14 seconds.

  1. Thread: time a program

    by Cornix
    Replies
    7
    Views
    853

    Re: time a program

    If you check for how much time has passed.
    Since a simple if is incredibly fast you would check thousands of times per second, thats very inefficient use of CPU cycles.
    After you checked how much...
  2. Thread: time a program

    by Cornix
    Replies
    7
    Views
    853

    Re: time a program

    Your code does not work at all.
    If you create a Date object it will not start counting up. It will always return the same time when you call the getTime() method.

    There is 2 ways you can do it,...
Results 1 to 2 of 2