Recording Time in Pascal

Hey,

I need to record the time taken for a program to run, so that I can compare different code structures, but I can't find a function that will do it. Does anyone know of a function that would do this for me?

Thanks a lot,

Tom

Comments

  • : Hey,
    :
    : I need to record the time taken for a program to run, so that I can
    : compare different code structures, but I can't find a function that
    : will do it. Does anyone know of a function that would do this for me?
    :
    : Thanks a lot,
    :
    : Tom
    :
    In Turbo Pascal this procedure is in the DOS unit.
    [code]
    Procedure GetTime(var hour, minute, second, sec100 : Word) ;
    [/code]
  • : : Hey,
    : :
    : : I need to record the time taken for a program to run, so that I can
    : : compare different code structures, but I can't find a function that
    : : will do it. Does anyone know of a function that would do this for me?
    : :
    : : Thanks a lot,
    : :
    : : Tom
    : :
    : In Turbo Pascal this procedure is in the DOS unit.
    : [code]:
    : Procedure GetTime(var hour, minute, second, sec100 : Word) ;
    : [/code]:
    :


    Awesome, thanks Actor.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories