hello there, do anybody here have an idea of the Linux version of the GetTickCount() function. thanks! :)

Recommended Answers

All 4 Replies

Who's version of GetTickCount() are you talking about, so we can establish a frame of reference.

If you're looking for how long the system has been alive, then the nearest equivalent is uptime
http://www.linuxmanpages.com/man1/uptime.1.php
Which for your purposes I guess is how long the 'init' process has been running for. You need to do some digging of your own if you want to get this information programmatically.

If on the other hand you're looking for a reasonably fast clock, then
http://www.linuxmanpages.com/man2/gettimeofday.2.php

Thank you sir. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.