include <time.h>
include <stdio.h>
int main(){
clock_t start = clock(); // Execuatable code
clock_t stop = clock();
double elapsed = (double)(stop - start) * 1000.0 / CLOCKS_PER_SEC;
printf("Time elapsed in ms: %f", elapsed);
}
More Related Contents:
- Sorting (Quicksort) ,Partition
- Matrix multiplication: Small difference in matrix size, large difference in timings
- How to do unsigned saturating addition in C?
- read line by line in the most efficient way *platform specific*
- Print all permutation in lexicographic order
- `std::list::sort()` – why the sudden switch to top-down strategy?
- Sorting an array in C?
- Algorithm to find all the exact divisors of a given integer
- Which is better way to calculate nCr
- QuickSort and Hoare Partition
- Assorting linked list in c [duplicate]
- Recursive C function
- High-performance merging of ordered sets
- What is the fastest substring search algorithm?
- Point in Polygon Algorithm
- What common algorithms are used for C’s rand()?
- Merge Sort a Linked List
- Why is this code using strlen heavily 6.5x slower with GCC optimizations enabled?
- Enumerate factors of a number directly in ascending order without sorting?
- How to qsort an array of pointers to char in C?
- Efficient 4×4 matrix vector multiplication with SSE: horizontal add and dot product – what’s the point?
- Finding all the unique permutations of a string without generating duplicates
- When is assembly faster than C? [closed]
- Given an audio stream, find when a door slams (sound pressure level calculation?)
- find if 4 points on a plane form a rectangle?
- Linked list recursive reverse
- Segmentation Fault While Creating Large Arrays in C
- Reductions in parallel in logarithmic time
- How does the CPU cache affect the performance of a C program
- A possible algorithm for determining whether two strings are anagrams of one another? [closed]