[libstuff] Fix nsec().

This commit is contained in:
Kris Maglione 2010-06-04 18:15:11 -04:00
parent 6639d9d02f
commit abefbf048d
2 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,6 @@ nsec(void) {
struct timeval tv;
gettimeofday(&tv, nil);
return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_sec * 1000;
return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000;
}

View File

@ -9,8 +9,8 @@ SOLDFLAGS += $(LIBX11)
TARG = libwmii_hack
# Can't just link libstuff here. We need PIC objects.
OBJ = hack \
../libstuff/util/getbase \
../libstuff/util/getlong \
../libstuff/util/getbase \
../libstuff/util/getlong \
../libstuff/util/tokenize
include $(ROOT)/mk/so.mk