milliseconds

Simple C script to dump an approximate local time

Blog tags: 

Quick and dirty C function to dump rough/not truly accurate samples for time

/**
 * @file time.c
 * @brief Purpose is to just generate a simple time (not accurate) with milliseconds
 * @note gcc -Wall -o simpletime time.c -lm
 */
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <math.h>

#define BUFFER_LEN 100

Subscribe to RSS - milliseconds