is there any function(API or something) for get 1ms of precision?
i have 1 timer, but i only get 10ms of max.
cambalinho
125
Practically a Posting Shark
Recommended Answers
Jump to PostNo -- it's impossible to get that precision in operating systems such as MS-Windows and *nix. You need a real-time os such as MS-DOS 6.X in order to do that. I recall reading about some 3d party add-ons to turn MS-Windows into real-time os, but the cost a lot of …
Jump to Post*nix is a colloquialism to describe POSIX-based operating systems such as Unix or Linux.
Jump to PostOn most systems, there are a number of different accessible clocks, some more precise than others. And the C++11 standard reflects that with the use of
std::chrono::system_clock::now()
andstd::chrono::high_resolution_clock::now()
. The actual precision of those clocks is dependent on the system.I'm afraid Ancient Dragon's statement is somewhat out-dated. …
Jump to PostThe scale is in nano-seconds. So, this means that your clock's resolution 1 millisecond (or 1 million nano-seconds). That's not great, but it will be just enough for you.
I'm guess that you are using Windows, and that your implementation / compiler does not yet support a "real" high-resolution clock, …
Jump to Posti don't like to much of 8, because it's like i need a touchscreen because of it's 'start menu')
Wrong, Windows 8 does not require touch screen. Anything you can do with touch screen you can do just as easily with the mouse.
All 30 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
cambalinho
125
Practically a Posting Shark
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
cambalinho
125
Practically a Posting Shark
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
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.