Epoch time to host time
Epoch time to host time
- Subject: Epoch time to host time
- From: Eugene Erokhin <email@hidden>
- Date: Mon, 12 Apr 2010 18:48:14 +0400
Hi all.
I use such code to get Epoch time:
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &g_host_clock);
mach_timespec_t now;
clock_get_time(g_host_clock, &now);
with pthread_cond_timedwait, to plan MIDI event sends. But CoreMIDI use host time.
So, how can I convert epoch time to host time? Or may be host time to epoch time!?
Best regards,
Eugene Erokhin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden