Skip to content

Instantly share code, notes, and snippets.

@spiculator
Created January 19, 2013 08:06
Show Gist options
  • Save spiculator/4571327 to your computer and use it in GitHub Desktop.
Save spiculator/4571327 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <sys/time.h>
main() {
struct timeval tv;
gettimeofday(&tv, NULL);
printf("Content-Type: text/plain\n\n%d.%06d\n", tv.tv_sec, tv.tv_usec);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment