diff options
| author | = | 2022-05-29 16:42:47 +0200 |
|---|---|---|
| committer | = | 2022-05-29 16:42:47 +0200 |
| commit | da581d15930088caf46f5c5411df8dedfee3f3c3 (patch) | |
| tree | 540b48c9d3926ae94244f7446c7d1f1861ac7cd6 /TODO | |
| parent | 377dc104be127291ede5b32640c23eea0ba6791a (diff) | |
| download | soikk-DB-da581d15930088caf46f5c5411df8dedfee3f3c3.tar.xz soikk-DB-da581d15930088caf46f5c5411df8dedfee3f3c3.tar.zst | |
Idr
Diffstat (limited to 'TODO')
| -rw-r--r-- | TODO | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1 +1,21 @@ DONE Try to improve 'sameStr' by maybe not having to check s2[i2] +When developed more, check if its better to us "strInTags" or "BM" for applicable uses +Measure performance with + struct timespec t0, t1; + if(timespec_get(&t0, TIME_UTC) != TIME_UTC) { + printf("Error in calling timespec_get\n"); + exit(EXIT_FAILURE); + } + + //measure these two + int a = strInTags(str, l, "percent", 7, ';'); + int a = BM("percent", 7, str, l); + + if(timespec_get(&t1, TIME_UTC) != TIME_UTC) { + printf("Error in calling timespec_get\n"); + exit(EXIT_FAILURE); + } + // Calculate the elapsed time + double diff = (double)(t1.tv_sec - t0.tv_sec) + ((double)(t1.tv_nsec - t0.tv_nsec)/1000000000L); + printf("Elapsed time: %lf seconds\n", diff); + |
