@Skif-off

#include <time.h>

clock_t begin = clock();

for (int i = 0 ; i < 1000000 ; ++i) {
  char * file_does_not_exist = g_strconcat(geany->app->configdir, "file_does_not_exist", NULL);
  g_file_test(file_does_not_exist, G_FILE_TEST_IS_REGULAR);
}

clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;

msgwin_status_add("time_spent = %f", time_spent);


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.