what is the best timer method to time an operation?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeroen CEuppens

    what is the best timer method to time an operation?

    Hi,

    I want to have a timer that counts how long it takes to draw 2 bitmap
    files......

    I use the compact framework, so I haven't got System.Timers

    Please help me...
    Greetz
    JC


  • Dan Cimpoiesu

    #2
    Re: what is the best timer method to time an operation?

    Can you use the Timer from System.Threadin g?

    "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
    news:eTMU4q%23k DHA.2080@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Hi,
    >
    > I want to have a timer that counts how long it takes to draw 2 bitmap
    > files......
    >
    > I use the compact framework, so I haven't got System.Timers
    >
    > Please help me...
    > Greetz
    > JC
    >
    >[/color]


    Comment

    • 100

      #3
      Re: what is the best timer method to time an operation?

      Hi Jeroen,
      What about using DateTime.Now at the begining of the operation and again
      when everything is done.

      HTH
      B\rgds
      100
      "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
      news:eTMU4q%23k DHA.2080@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > Hi,
      >
      > I want to have a timer that counts how long it takes to draw 2 bitmap
      > files......
      >
      > I use the compact framework, so I haven't got System.Timers
      >
      > Please help me...
      > Greetz
      > JC
      >
      >[/color]


      Comment

      • Jeroen CEuppens

        #4
        Re: what is the best timer method to time an operation?

        Yes, but that Timer is very complicated, the timer in System.Timers is
        simple, and has everything I need.

        Is there maybe an other way? getting the systemtime in milliseconds? And
        calculate with that values a timespan....... . ?
        "Dan Cimpoiesu" <dancimpoiesu@g mx.net> wrote in message
        news:#wW156#kDH A.2200@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Can you use the Timer from System.Threadin g?
        >
        > "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
        > news:eTMU4q%23k DHA.2080@TK2MSF TNGP10.phx.gbl. ..[color=green]
        > > Hi,
        > >
        > > I want to have a timer that counts how long it takes to draw 2 bitmap
        > > files......
        > >
        > > I use the compact framework, so I haven't got System.Timers
        > >
        > > Please help me...
        > > Greetz
        > > JC
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Jon Davis

          #5
          Re: what is the best timer method to time an operation?

          > getting the systemtime in milliseconds? And[color=blue]
          > calculate with that values a timespan....... . ?[/color]

          '100' already suggested using DateTime.Now. Look at the Ticks property of
          that object.

          Jon


          "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
          news:%23mW9s%23 %23kDHA.3700@TK 2MSFTNGP11.phx. gbl...[color=blue]
          > Yes, but that Timer is very complicated, the timer in System.Timers is
          > simple, and has everything I need.
          >
          > Is there maybe an other way? getting the systemtime in milliseconds? And
          > calculate with that values a timespan....... . ?
          > "Dan Cimpoiesu" <dancimpoiesu@g mx.net> wrote in message
          > news:#wW156#kDH A.2200@TK2MSFTN GP12.phx.gbl...[color=green]
          > > Can you use the Timer from System.Threadin g?
          > >
          > > "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
          > > news:eTMU4q%23k DHA.2080@TK2MSF TNGP10.phx.gbl. ..[color=darkred]
          > > > Hi,
          > > >
          > > > I want to have a timer that counts how long it takes to draw 2 bitmap
          > > > files......
          > > >
          > > > I use the compact framework, so I haven't got System.Timers
          > > >
          > > > Please help me...
          > > > Greetz
          > > > JC
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Jeroen CEuppens

            #6
            Re: what is the best timer method to time an operation?

            Do you know a good site about timing and Windows Ce ?
            "Dan Cimpoiesu" <dancimpoiesu@g mx.net> wrote in message
            news:#wW156#kDH A.2200@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Can you use the Timer from System.Threadin g?
            >
            > "Jeroen CEuppens" <jeroen.ceuppen s@barco.com> wrote in message
            > news:eTMU4q%23k DHA.2080@TK2MSF TNGP10.phx.gbl. ..[color=green]
            > > Hi,
            > >
            > > I want to have a timer that counts how long it takes to draw 2 bitmap
            > > files......
            > >
            > > I use the compact framework, so I haven't got System.Timers
            > >
            > > Please help me...
            > > Greetz
            > > JC
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...