clang also has __rdtsc() available from x86intrin.h header.
Actual clang intrinsic is
__builtin_readcyclecounter (and
llvm.readcyclecounter for llvm), but clang provides __rdtsc for compatibility reasons.
For Swift I think you can simply create C function that would call __rdtsc() and return result value. Then call this function from Swift.