aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-12-11 23:40:02 -0600
committerfoswret <foswret@posteo.com>2025-12-11 23:40:02 -0600
commit5a0c5630e0bcc5e06beb856c666f7eaedd1c9559 (patch)
treea2943c6ae7594f86e48515ef4da8d752323272d2 /src
parentde77826633fc128b915e999a9adf10f088b4d3f3 (diff)
updated Makefile, renamed output to calp and main.c/main.o to calp.c/calp.o
Diffstat (limited to 'src')
-rw-r--r--src/calp.c (renamed from src/main.c)5
-rw-r--r--src/calp.obin0 -> 13272 bytes
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/calp.c
index 6d76a6d..278538e 100644
--- a/src/main.c
+++ b/src/calp.c
@@ -86,6 +86,7 @@ int main (void) {
cairo_set_line_width (cr, 0.03);
+ clock_t begin = clock();
draw_calendar(cr, month_origin_x, month_origin_y, dim);
draw_numbers(cr, month_origin_x, month_origin_y, dim, day.tm_wday, number_of_days);
draw_month_name(cr, months[1], dim);
@@ -93,5 +94,9 @@ int main (void) {
/* Clean Up */
cairo_destroy(cr);
cairo_surface_destroy(surface);
+
+ clock_t end = clock();
+ double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
+ printf("Execution Time: %.3fs\n", time_spent);
return(0);
}
diff --git a/src/calp.o b/src/calp.o
new file mode 100644
index 0000000..23e90f5
--- /dev/null
+++ b/src/calp.o
Binary files differ