473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Nov 15 '05 #1
5 2113
Can you use the Timer from System.Threading?

"Jeroen CEuppens" <je*************@barco.com> wrote in message
news:eT****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
100
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" <je*************@barco.com> wrote in message
news:eT****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #3
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" <da**********@gmx.net> wrote in message
news:#w**************@TK2MSFTNGP12.phx.gbl...
Can you use the Timer from System.Threading?

"Jeroen CEuppens" <je*************@barco.com> wrote in message
news:eT****************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #4
> getting the systemtime in milliseconds? And
calculate with that values a timespan........ ?
'100' already suggested using DateTime.Now. Look at the Ticks property of
that object.

Jon
"Jeroen CEuppens" <je*************@barco.com> wrote in message
news:%2********************@TK2MSFTNGP11.phx.gbl.. . 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" <da**********@gmx.net> wrote in message
news:#w**************@TK2MSFTNGP12.phx.gbl...
Can you use the Timer from System.Threading?

"Jeroen CEuppens" <je*************@barco.com> wrote in message
news:eT****************@TK2MSFTNGP10.phx.gbl...
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



Nov 15 '05 #5
Do you know a good site about timing and Windows Ce ?
"Dan Cimpoiesu" <da**********@gmx.net> wrote in message
news:#w**************@TK2MSFTNGP12.phx.gbl...
Can you use the Timer from System.Threading?

"Jeroen CEuppens" <je*************@barco.com> wrote in message
news:eT****************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mr Grunge of Gunk Hall. | last post by:
I have an application that listens on a socket using TcpListener. Afiter I create the object I use the Start method and then I wait for an incoming request. No problem with this. When waiting for a...
1
by: martinm69x | last post by:
Hey all, I've been working on the code for a kernel timer which will report real time, CPU time, user time and kernel time on the operation of fibonacci method. The way im doing it is keeping...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
2
by: KSC | last post by:
Hello, I have used a thread timer as in the documentation on MSDN in my VB.NET application. Using System.Threading.Interlocked.Increment I increment the counter to a certain point, perform an...
4
by: John Salerno | last post by:
My code is below. The main focus would be on the OnStart method. I want to make sure that a positive integer is entered in the input box. At first I tried an if/else clause, then switched to...
2
by: Umeshnath | last post by:
Hi, I have a web application that refreshes a label control every 1 sec (interval set by timer control). I am using Atlas panel for refreshing. Basically I have a method say PollMSMQ(), which...
2
by: Umeshnath | last post by:
Hi, I have a web application that refreshes a label control every 1 sec (interval set by timer control). I am using Atlas panel for refreshing. Basically I have a method say PollMSMQ(), which...
10
by: DaTurk | last post by:
Hi, I'm creating an application that will need to use a timer to do a static method call every second. My question, is what would be the best timer to use? I know there are several, but I'd...
1
by: truedecembr | last post by:
Hi everyone, I am brand new to Java and not really even sure what I'm doing... I'm supposed to be writing a Timer class that is part of a stop watch application, and it seems to me that the program...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.