Refactor get_time_stamp_ns (#34536)
* Refactor get_time_stamp_ns
* Add place holder function for pc to make pc build pass
* Add missing header file
* Move all time functions to mono-time.c
* Make sampling_thread_running a global variable
* Pass void* to init, clean_up and get_time function to accormodate different clock ID types for different os, and move back profiler specific function
* Add static keyword for local helper function and fix a typo
* Change to platform-specific typedef approach
* Add missing header file for macOS
* Add missing header file for linux
* Change header file name
* Change header file name one more time
* Fix failures on macOS
* Update src/mono/mono/utils/mono-time.h
Co-Authored-By: Ryan Lucia <ryan@luciaonline.net>
Co-authored-by: Ryan Lucia <ryan@luciaonline.net>