convertmicros function