How can i get the time from the system clock in nanoseconds??
im using c++ here..
thanx..
Flawless
0
Newbie Poster
Recommended Answers
Jump to PostOn Windows, you can get the number of milliseconds since the processor started (GetTickCount()), and there are 'high resolution timers' (see "multimedia timer" or "high resolution timer" in VC help) that are higher resolution than that, but you won't get an accurate number of nanoseconds.
Besides, by the time …
Jump to Postsystem boot time is the value returned by GetTickCount(). If you want to know the actual date/time, call time() function in time.h, then localtime() to get struct tm pointer. From that subtract the number of seconds returned by GetTickCount(), pass that result to mktime() (from time.h) which will do all …
All 6 Replies
Chainsaw
12
Posting Pro in Training
Rita agrawal
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Salem
5,138
Posting Sage
brain
-4
Newbie Poster
Salem
commented:
Clues for the clueless, or at least unable to read.
-4
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.