473,472 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Measuring of time consumed by thread

Hello everyone,

I need to know how much time (cpu time like in Task Manager) is consumed by
a thread. I tried to use Process.GetCurrentProcess.Threads and choose the
current thread by AppDomain.GetCurrentThreadID. But results were wrong. Has
anyone an idea to solve thsi matter?

Thanks in advance

Matthias
Jul 21 '05 #1
1 1681
Please post a working repro sample.

Willy.

"WinstonSmith" <ma***********@gmx.de> wrote in message news:uF*************@TK2MSFTNGP11.phx.gbl...
Hello everyone,

I need to know how much time (cpu time like in Task Manager) is consumed by
a thread. I tried to use Process.GetCurrentProcess.Threads and choose the
current thread by AppDomain.GetCurrentThreadID. But results were wrong. Has
anyone an idea to solve thsi matter?

Thanks in advance

Matthias

Jul 21 '05 #2

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

Similar topics

1
by: Joannes Vermorel | last post by:
I am currently doing some CS research that requires to collect some "web page retrieval latency" statistical data. Basically I have a list of URLs, and I want to measure the retrieval time of those...
2
by: Kunk | last post by:
Hi All, I was curious if an exception is generated with the .ReadLine() function (found in the StreamReader class), will the current line be consumed? Thus the next .ReadLine() will start at the...
1
by: WinstonSmith | last post by:
Hello everyone, I need to know how much time (cpu time like in Task Manager) is consumed by a thread. I tried to use Process.GetCurrentProcess.Threads and choose the current thread by...
74
by: Dominik Wallner | last post by:
Hi! I'm currently implementing a program which measures voltages through an external USB-AD-converter. It should output those values as time/voltage pairs. My problem is to measure the time...
5
by: raybakk | last post by:
Hi there. If I make a function in c (I acually use gnu right now), is there any way to find out how many clocksycluses that function takes? If I divide some numbers etc Var1 = Var2/Var3, is it...
20
by: upperclass | last post by:
Hi, I'm trying to find a decent way of measuring the running time of a long-running program. Say, the running time ranges from several seconds to more than a day. The standard clock()...
4
by: Omega | last post by:
Hi, I'm a student working on a report about a piece of software (C++, linux) that I've written. The major tasks that this software executes are: >create a string based on called function (just a...
7
by: i12know | last post by:
Hi guys, I have tried a lot of code and read forums discussing about C or C++ functions that measures time in microsecond, but there still seems to be confusions about that. Can anyone tell me...
9
by: Ross | last post by:
I'm a newbie at this, and have searched a lot but can't find something that seems appropriate for measuring a recurring elapsed time. Creating an object with: var mydate = new Date(); seems...
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
marktang
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,...
0
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...
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
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.