UNIX time じゃなくて gettimeofday() の microseconds を使ってみるとか.