|
|
|
@@ -13,19 +13,16 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
GNU Lesser General Public License for more details. |
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License |
|
|
|
along with this program; if not, write to the Free Software |
|
|
|
along with this program; if not, write to the Free Software |
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
#include <windows.h> |
|
|
|
#include "JackTime.h" |
|
|
|
#include "JackTypes.h" |
|
|
|
#include "JackError.h" |
|
|
|
|
|
|
|
static LARGE_INTEGER _jack_freq; |
|
|
|
|
|
|
|
SERVER_EXPORT void JackSleep(long usec) |
|
|
|
SERVER_EXPORT void JackSleep(long usec) |
|
|
|
{ |
|
|
|
Sleep(usec / 1000); |
|
|
|
} |
|
|
|
@@ -36,11 +33,11 @@ SERVER_EXPORT void InitTime() |
|
|
|
_jack_freq.QuadPart = _jack_freq.QuadPart / 1000000; // by usec |
|
|
|
} |
|
|
|
|
|
|
|
SERVER_EXPORT jack_time_t GetMicroSeconds(void) |
|
|
|
SERVER_EXPORT jack_time_t GetMicroSeconds(void) |
|
|
|
{ |
|
|
|
LARGE_INTEGER t1; |
|
|
|
QueryPerformanceCounter(&t1); |
|
|
|
return (jack_time_t)(((double)t1.QuadPart) / ((double)_jack_freq.QuadPart)); |
|
|
|
return (jack_time_t)(((double)t1.QuadPart) / ((double)_jack_freq.QuadPart)); |
|
|
|
} |
|
|
|
|
|
|
|
SERVER_EXPORT void SetClockSource(jack_timer_type_t source) |
|
|
|
|