Skip to content

Instantly share code, notes, and snippets.

@nkuln
Created November 21, 2011 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkuln/1381998 to your computer and use it in GitHub Desktop.
Save nkuln/1381998 to your computer and use it in GitHub Desktop.
#include <sys/time.h>
#include <stdio.h>
#include <unistd.h>
// ..
struct timeval t;
gettimeofday(&t, NULL);
rfa::common::Int64 now;
now = t.tv_sec;
now *= 1000000;
now += t.tv_usec;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment