Questions tagged [gettickcount]

GetTickCount() is a function in the Windows API that retrieves the number of milliseconds that have elapsed since the computer started. Use this tag if you are having difficulties with this function, or have a question related to GetTickCount()

33 questions
1
vote
2 answers

get network computer System.Environment.TickCount

I've been searching to find out how to get a remote PC's System.Environment.TickCount. Using this simple code gets the info I want from my local PC but I can't work out how to get the same info for each PC in our domain network. I want to run this…
Mutley
  • 77
  • 2
  • 13
1
vote
1 answer

I am getting linker errors when using clock_gettime

To use clock_gettime what library do I need to link with? I am getting linker errors that clock_gettime is undefined.
dongle26
  • 826
  • 1
  • 10
  • 18
0
votes
1 answer

GetTickCount() for multiple functions in int main

I'm trying to time multiple functions using GetTickCount() separately in a very large piece of code to find where exactly the bottlenecks are. I can successfully time the whole piece of code. What I'm struggling to work out is where do I add the…
Forcom
  • 1
0
votes
0 answers

How to get when windows has booted in C++

I am working in a C++ application where I need to check the timing when OS has booted. Is there any way to retrieve that time? I tried GetTickCount64() function but it is returning the time when my exe has started. ULONGLONG tm = GetTickCount64(); I…
0
votes
1 answer

Timer overflow after 25 days by long-variable in VBA, ring counter technique

I am programming some winsocket-applications with vba and there is the possibity of time outs. I have experimented with API-Timer Settimer and Killtimer, but there you have to be careful to start and stop the timer parallel to the normal vba…
0
votes
1 answer

How Environment.TickCount overflows after 25 days (or 48-49 days)

While reading this question and its replies Environment.TickCount is not enough I got confused. They are saying that Environment.TickCount works for 48-49 days (OP) (and @Cody Gray says 25 days), but its an int value, so can store up to…
Manish Dalal
  • 1,768
  • 1
  • 10
  • 14
0
votes
2 answers

Windows GetTickCount in Ruby

Is it possible go get the current windows TickCount in Ruby? (http://msdn.microsoft.com/en-us/library/ms724408%28v=vs.85%29.aspx)
ipsum
  • 1,042
  • 7
  • 17
0
votes
1 answer

How to call case in switch every x interval time using gettickcount() c++

i have this switch, i need execute case every x seconds using gettickcount() in c++. Thanks in advance, sorry for my spanglish :D int x = rand() % 4; switch(x) { case 0: …
0
votes
2 answers

Timer firing Tick event with 15 milliseconds delay

I'm having a weird problem with timers. As long as I know, the interval property of a timer indicates the delay between loops in which the timer_Tick event will be fired. I had this problem with the exact signature (15 and 16 milliseconds delay)…
Ramtin Soltani
  • 2,650
  • 3
  • 24
  • 45
0
votes
1 answer

GetTickCount64 error using Python and C++

I'm attempting to embed a python module within a larger c++ program (Relevant details:VS2005, WinXP Python 2.7). When I create a new instance of the class that includes 'python.h' and attempt to run my program I get the error message "The procedure…
0
votes
0 answers

Get correct CFHTTP run time, gettickcount inaccurate?

I'm trying to troubleshoot a script and I'm 99% positive that its the CFHTTP function I'm running because when I remove it, the page seems to be much faster, but it's inconsistent. That said, even when the page runs long, the tickcount that I'm…
John Egbert
  • 69
  • 1
  • 6
0
votes
1 answer

Having trouble get GetTickCount() in C

This is part of my code in visual studio 2010. However I'm getting the "IntelliSense: identifier "GetTickCount" is undefined" from the compiler. I do not know how to fix it. typedef enum {FALSE = 0, TRUE} BOOL; int main(int argc, char*…
answerSeeker
  • 2,692
  • 4
  • 38
  • 76
0
votes
1 answer

Creating a wait using getTickCount in Delphi

I am creating a procedure that I need to run then wait 10 minutes before moving on procedure firstTimeRun(const document: IHTMLDocument2); var fieldValue : string; StartTime : Dword; begin StartTime := GetTickCount(); …
NicholasSPI
  • 13
  • 1
  • 6
0
votes
0 answers

Ticks Per Second : Alternative for QueryPerformanceFrequency

QueryPerformanceFrequency crashes on our system, Is it feasible to use flowwing piece of code as an alternative LARGE_INTEGER pCount; LARGE_INTEGER…
Rajasekhar
  • 19
  • 3
0
votes
1 answer

GetTickCount() Identifier not found

I'm not sure why I get the error "GetClickCount identifier not found" when I try to compile this code. (I get the same error with GetClickCount64). I was hoping someone might be able to explain. Most of my serches on the problem seem to indicate…
deadEddie
  • 242
  • 2
  • 8
  • 20