Skip to content

Instantly share code, notes, and snippets.

@godoio
godoio / speedOfCode.c
Last active July 20, 2022 15:16
A code to measure the speed of your code in nano seconds
// This codelet does not give you the exact time your C code ran for
// but a number signifying the nano seconds your C code ran for which
// includes your cpu speed.
#include<stdio.h>
#include<sys/time.h>
#include <inttypes.h>
int main() {