#include <stdio.h>
#include <time.h>

#define profile(FUNC, ...) \
    {\
        time_t start, end;\
        \
        start = clock();\
        FUNC(__VA_ARGS__);\
        end = clock();\
        printf("%f\n", (double)(end - start) / CLOCKS_PER_SEC);\
    }

int main()
{
    profile(printf, "%s:%d\n", "hoge", 10);
    profile(puts, "abcdef");
    return 0;
}
