Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. get system time

get system time

Scheduled Pinned Locked Moved Managed C++/CLI
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shamsteady
    wrote on last edited by
    #1

    How can i get the system time?

    C P 2 Replies Last reply
    0
    • S shamsteady

      How can i get the system time?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      DateTime.Now. If this does not work, then you're not using C++/CLI, and have asked in the wrong forum.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • S shamsteady

        How can i get the system time?

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Use GetSystemTime.

        SYSTEMTIME systime;
        GetSystemTime(&systime);

        ps. Question not involving CLI should be asked in VC++[^] forum.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        S 1 Reply Last reply
        0
        • P prasad_som

          Use GetSystemTime.

          SYSTEMTIME systime;
          GetSystemTime(&systime);

          ps. Question not involving CLI should be asked in VC++[^] forum.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          S Offline
          S Offline
          shamsteady
          wrote on last edited by
          #4

          Thanks for the information

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups