AlBurns-MSFT / TimeMeasure

Measures time to fork and exec in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Measuring time to fork and execute a process using C

Compile Application.c by the following: gcc -o application application.c -lrt

Compile Timer.c by the following: gcc -o timer timer.c -lrt

Compiled with gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

SIZE macro in application.c is currently set to 20000. On my system, CPU: Intel i5-4670k, 8 GB ram, it takes ~ 5 seconds to run ./timer. If necessary, adjust this macro to increase or decrease run time.

About

Measures time to fork and exec in C


Languages

Language:C 100.0%