Am I doing something wrong? I expected roughly the same time when running the musl version.


$ cat test_ctime.c 
#include <stdio.h>
#include <time.h>

int main()
{
    time_t t = time(0);
    printf("%s", ctime(&t));
}


$ gcc  test_ctime.c   -o test_ctime
$ test_ctime
Thu May  1 16:33:16 2014


$ musl-gcc -fno-stack-protector    test_ctime.c   -o test_ctime
$ test_ctime
Thu May  1 20:33:46 2014
$