Вопрос по objective-c, ios – Получите время загрузки в цели c

3

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Youssef
Error: User Rate Limit Exceededclock()Error: User Rate Limit Exceeded dasblinkenlight
Error: User Rate Limit Exceeded tipycalFlow
Error: User Rate Limit Exceededstackoverflow.com/q/4972651/550177 Felix
Error: User Rate Limit Exceeded tipycalFlow

Ваш Ответ

1   ответ
11

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededuptimeError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

#include <sys/types.h>
#include <sys/sysctl.h>  

// ....  

#define MIB_SIZE 2  

int mib[MIB_SIZE];
size_t size;
struct timeval  boottime;

mib[0] = CTL_KERN;
mib[1] = KERN_BOOTTIME;
size = sizeof(boottime);
if (sysctl(mib, MIB_SIZE, &boottime, &size, NULL, 0) != -1)
{
    // successful call
    NSDate* bootDate = [NSDate dateWithTimeIntervalSince1970:boottime.tv_sec];
}

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded

Похожие вопросы