Hi,
I am trying to track the time taken for a process to complete.
for loop //for multiple same Process
{
//Do Process
//Get Time
}
By doing this I will get a sequence of time
I have been looking at Timer class and TimeDate class for my problem below.
Timer class seems to be not what i can use as I am not having a process
being executed again and again defined by the timer class.
TimeDate seems to suit better, however due to the process taking lesser than
milliseconds to finish, I would end up have a sequence of same value(
TimeData.Now.Millisecond ).
This is not very nice, so I am wondering whether there is a way to track
nanoseconds or a better way to implement something like my above problem.
Thanks in advance
Joey. 7 2671
Make you path execute millions of iterations or even
billions and then take the average time as (total
time)/iterations and you should get closer than most any
other way available. -----Original Message----- Hi,
I am trying to track the time taken for a process to
complete. for loop //for multiple same Process { //Do Process //Get Time }
By doing this I will get a sequence of time
I have been looking at Timer class and TimeDate class
for my problem below. Timer class seems to be not what i can use as I am not
having a processbeing executed again and again defined by the timer
class. TimeDate seems to suit better, however due to the
process taking lesser thanmilliseconds to finish, I would end up have a sequence
of same value(TimeData.Now.Millisecond ).
This is not very nice, so I am wondering whether there
is a way to tracknanoseconds or a better way to implement something like
my above problem. Thanks in advance
Joey.
That would work, however my mistake; I forgot to mention that my
process(same) uses different data input everytime, so depending on
situation(random in nature), some processes will be longer than the rest,
having an average is ok(final reporting) but, i would need(detail report) to
show that during time x, processes are this long while time x+a is this
long.... so i think i require a smaller scale of measurement.
Thanks for the suggestion
Joey
"morgal" <vb**********@yahoo.com> wrote in message
news:5c****************************@phx.gbl... Make you path execute millions of iterations or even billions and then take the average time as (total time)/iterations and you should get closer than most any other way available.
-----Original Message----- Hi,
I am trying to track the time taken for a process to complete. for loop //for multiple same Process { //Do Process //Get Time }
By doing this I will get a sequence of time
I have been looking at Timer class and TimeDate class
for my problem below. Timer class seems to be not what i can use as I am not
having a processbeing executed again and again defined by the timer class. TimeDate seems to suit better, however due to the
process taking lesser thanmilliseconds to finish, I would end up have a sequence of same value(TimeData.Now.Millisecond ).
This is not very nice, so I am wondering whether there is a way to tracknanoseconds or a better way to implement something like my above problem. Thanks in advance
Joey.
Dummy up the data and state of the execution path to
allow for repetitive execution of the same path and do
several tests. -----Original Message-----
That would work, however my mistake; I forgot to mention
that myprocess(same) uses different data input everytime, so
depending onsituation(random in nature), some processes will be
longer than the rest,having an average is ok(final reporting) but, i would
need(detail report) toshow that during time x, processes are this long while
time x+a is thislong.... so i think i require a smaller scale of
measurement. Thanks for the suggestion
Joey
"morgal" <vb**********@yahoo.com> wrote in message news:5c****************************@phx.gbl... Make you path execute millions of iterations or even billions and then take the average time as (total time)/iterations and you should get closer than most
any other way available.
>-----Original Message----- >Hi, > >I am trying to track the time taken for a process to complete. > >for loop //for multiple same Process >{ >//Do Process >//Get Time >} > >By doing this I will get a sequence of time > >I have been looking at Timer class and TimeDate class for my problem below. > >Timer class seems to be not what i can use as I am not having a process >being executed again and again defined by the timer class. > >TimeDate seems to suit better, however due to the process taking lesser than >milliseconds to finish, I would end up have a
sequence of same value( >TimeData.Now.Millisecond ). > >This is not very nice, so I am wondering whether there is a way to track >nanoseconds or a better way to implement something
like my above problem. > >Thanks in advance > >Joey.
P/Invoke QueryPerformanceCounter & QueryPerformanceFrequency.
Should be exact to a few nanoseconds.
Niki
"Joseph Lee" <jo*********@hotmail.com> wrote in
news:uz**************@TK2MSFTNGP10.phx.gbl... Hi,
I am trying to track the time taken for a process to complete.
for loop //for multiple same Process { //Do Process //Get Time }
By doing this I will get a sequence of time
I have been looking at Timer class and TimeDate class for my problem
below. Timer class seems to be not what i can use as I am not having a process being executed again and again defined by the timer class.
TimeDate seems to suit better, however due to the process taking lesser
than milliseconds to finish, I would end up have a sequence of same value( TimeData.Now.Millisecond ).
This is not very nice, so I am wondering whether there is a way to track nanoseconds or a better way to implement something like my above problem.
Thanks in advance
Joey.
Hmm... i am not sure how to do that in my programming, sorry still not very
good at programming. Anyway thanks for helping me out
Joey
"morgal" <vb**********@yahoo.com> wrote in message
news:5f****************************@phx.gbl... Dummy up the data and state of the execution path to allow for repetitive execution of the same path and do several tests.-----Original Message-----
That would work, however my mistake; I forgot to mention that myprocess(same) uses different data input everytime, so depending onsituation(random in nature), some processes will be longer than the rest,having an average is ok(final reporting) but, i would need(detail report) toshow that during time x, processes are this long while time x+a is thislong.... so i think i require a smaller scale of measurement. Thanks for the suggestion
Joey
"morgal" <vb**********@yahoo.com> wrote in message news:5c****************************@phx.gbl... Make you path execute millions of iterations or even billions and then take the average time as (total time)/iterations and you should get closer than most any other way available.
>-----Original Message----- >Hi, > >I am trying to track the time taken for a process to complete. > >for loop //for multiple same Process >{ >//Do Process >//Get Time >} > >By doing this I will get a sequence of time > >I have been looking at Timer class and TimeDate class for my problem below. > >Timer class seems to be not what i can use as I am not having a process >being executed again and again defined by the timer class. > >TimeDate seems to suit better, however due to the process taking lesser than >milliseconds to finish, I would end up have a sequence of same value( >TimeData.Now.Millisecond ). > >This is not very nice, so I am wondering whether there is a way to track >nanoseconds or a better way to implement something like my above problem. > >Thanks in advance > >Joey.
Thanks, I think this is the one that will help me. Never seen it before
though. Give me some time to study it
Thanks again
Joey ^_^
"Niki Estner" <ni*********@cube.net> wrote in message
news:#A*************@TK2MSFTNGP09.phx.gbl... P/Invoke QueryPerformanceCounter & QueryPerformanceFrequency.
Should be exact to a few nanoseconds.
Niki
"Joseph Lee" <jo*********@hotmail.com> wrote in news:uz**************@TK2MSFTNGP10.phx.gbl... Hi,
I am trying to track the time taken for a process to complete.
for loop //for multiple same Process { //Do Process //Get Time }
By doing this I will get a sequence of time
I have been looking at Timer class and TimeDate class for my problem below. Timer class seems to be not what i can use as I am not having a process being executed again and again defined by the timer class.
TimeDate seems to suit better, however due to the process taking lesser
than milliseconds to finish, I would end up have a sequence of same value( TimeData.Now.Millisecond ).
This is not very nice, so I am wondering whether there is a way to track nanoseconds or a better way to implement something like my above
problem. Thanks in advance
Joey.
There is a KB article to help:
How To Use QueryPerformanceCounter to Time Code in Visual C# .NET http://support.microsoft.com/default...b;EN-US;306979
HTH,
--
Scott http://www.OdeToCode.com
On Sat, 14 Aug 2004 08:08:26 +0800, "Joseph Lee"
<jo*********@hotmail.com> wrote: Thanks, I think this is the one that will help me. Never seen it before though. Give me some time to study it
Thanks again Joey ^_^ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: marslee |
last post by:
I am a php newbie. I would like to count how many times a user visit a
webpage.
I know session tracking should be used, but where i put the code? Is it
inside the html that the user visit?
...
|
by: Tran Tuan Anh |
last post by:
Hi all,
I am new to Python and desperated to look for a good Python debugger.
I mean a debugger with source coding tracking. For C/C++, emacs and
gud offers execellent development env. The...
|
by: Kyle Friesen via AccessMonster.com |
last post by:
Mike,
I have databse that creates a "tracking number" based on the selections made on the form via concatenating. At the end of the tracking number, I need a two digit (01-99) sequence number by...
|
by: DDK |
last post by:
Does anyone know if there are any books that talk about building a website
tracking program for asp.net and C#? Or even any good resources on the web
that talk about this.
Thanks for any info,...
|
by: fred tate via .NET 247 |
last post by:
I'm working on a project that will track a great deal of data forindividuals and will keep track of users for a very long time (5- 10) years. I'm looking for options as far as tracking anddisplaying...
|
by: C# programmer |
last post by:
Hi All,
I'm working on a project which requires tracking of recent document
downloads. There is a feature in which user can download the docs
without logining into the website for some of the...
|
by: Ben Amada |
last post by:
Hi ...
I have an HTML page containing a bunch of <alinks. Some of the links
redirect the visitor to a page at a different website in a new browser
window (target=_blank) and other links are...
|
by: =?Utf-8?B?R3JhaGFt?= |
last post by:
I've added 2 tracking services to the wf runtime; one is the standard
SqlTrackingService:
trackingService = new
SqlTrackingService(<trackingConnectionString>);
<workflow...
|
by: LiveTecs |
last post by:
http://www.livetecs.com
TimeLive Web Collaboration Suite is an integrated suite that allows you to
manage project life cycle including tasks, issues, bugs, timesheet, expense,
attendance.
...
|
by: kaushivirtusa |
last post by:
hay,
im new to C#.net stuff so...
can anybody help me to figureout this with C#.net and sql sever..
You are required to create a basic Time Tracking application.
The user should be able to...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |