English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

Depends on the system. Unix ticks are already in seconds. In Windows, a tick is 100 nanoseconds.

2007-03-23 04:56:46 · answer #1 · answered by Rex M 6 · 0 2

That depends on the speed of the computer, and the functions available in the programming library you're using. It's much better to use time functions that are already based on seconds or partial seconds, that way your program is more portable. If you're on a Linux system, issue "apropos time" on the command line, to produce a huge list of time-related functions. For C programming in Linux, gettimeofday() and localtime() are commonly used functions.

2007-03-23 12:07:46 · answer #2 · answered by CinderBlock 5 · 1 1

fedest.com, questions and answers