/*
 *  ClusteredPoller
 *
 *  Created by Jakob Borg.
 *  Copyright 2011 Nym Networks. See LICENSE for terms.
 */

#include "cltime.h"
#include <stddef.h>

#include <sys/time.h>

curms_t curms(void)
{
        struct timeval now;
        gettimeofday(&now, NULL);
        return now.tv_sec * 1000 + now.tv_usec / 1000;
}

/*
 *  ClusteredPoller
 *
 *  Created by Jakob Borg.
 *  Copyright 2011 Nym Networks. See LICENSE for terms.
 */

#include "cltime.h"
#include <stddef.h>

#include <sys/time.h>

curms_t curms(void)
{
        struct timeval now;
        gettimeofday(&now, NULL);
        return (curms_t) now.tv_sec * 1000 + (curms_t) now.tv_usec / 1000;
}

Fix for Solaris type conversion.
Fix for Solaris type conversion.
