mailing list of musl libc
 help / color / mirror / code / Atom feed
* ctime, timezone?
@ 2014-05-01 20:37 John Mudd
  2014-05-01 20:56 ` Josiah Worcester
  2014-05-01 21:57 ` John Mudd
  0 siblings, 2 replies; 9+ messages in thread
From: John Mudd @ 2014-05-01 20:37 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

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
$

[-- Attachment #2: Type: text/html, Size: 769 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-02  5:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-01 20:37 ctime, timezone? John Mudd
2014-05-01 20:56 ` Josiah Worcester
2014-05-01 21:57   ` Josiah Worcester
2014-05-01 21:57 ` John Mudd
2014-05-01 22:00   ` John Mudd
2014-05-01 22:18     ` Josiah Worcester
2014-05-02  5:06       ` Timo Teras
2014-05-02  5:10         ` Timo Teras
2014-05-01 22:47     ` Laurent Bercot

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).