summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-09 22:02:39 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-09 22:02:39 (GMT)
commita6191803545927421de2d5a7d9b7a7a1034a363c (patch)
tree1c0c3d75ab1722b2474b7dfe67e01eb8bd5f374c /Python/modsupport.c
parentbe3a821b81b8ba096e465c7a75a52e30c9948277 (diff)
downloadcpython-a6191803545927421de2d5a7d9b7a7a1034a363c.zip
cpython-a6191803545927421de2d5a7d9b7a7a1034a363c.tar.gz
cpython-a6191803545927421de2d5a7d9b7a7a1034a363c.tar.bz2
Merged revisions 71413 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71413 | tarek.ziade | 2009-04-09 23:36:44 +0200 (Thu, 09 Apr 2009) | 1 line Fixed #5731: Distutils bdist_wininst no longer worked on non-Windows platforms ........
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions
option> Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/compat/gettod.c
blob: 98758e6d005cdc84985687889825feb22534b8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 
 * gettod.c --
 *
 *	This file provides the gettimeofday function on systems
 *	that only have the System V ftime function.
 *
 * Copyright (c) 1995 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: gettod.c,v 1.3 2004/04/06 22:25:47 dgp Exp $
 */

#include "tclPort.h"
#include <sys/timeb.h>

#undef timezone

int
gettimeofday(tp, tz)
struct timeval *tp;
struct timezone *tz;
{
    struct timeb t;
    ftime(&t);
    tp->tv_sec = t.time;
    tp->tv_usec = t. millitm * 1000;
    return 0;
}